Hello I want to do pivot wider to have a column "day" and a column "night" with all the diffente species in each. It's to do a diversity test between the day and the night
library(tidyverse)
df <- data.frame(
species=c("car","bike","horse","boat","yacht","train"),
station=c(A1,A1,A2,A2,A2,A3,),
period = c(day,day,night,day,night,day)