library(tidyverse)
rodents_full<-read_tsv("https://bit.ly/rodents_full")
rodents_full%>%
select(record_id,month,day,year,season_month,species_id,plot_id,species_id,sex,hindfoot_length,weight,genus,hindfoot_length,weight,genus,species,taxa,plot_type)%>%
mutate(season_month = case_when(
month == "1" | month == "2" | month =="12" ~ "winter",
month == "3"| month == "4" | month=="5" ~ "spring",
month =="6" | month == "7" | month =="8" ~ "summer",
month =="11"|month =="10"| month =="9"~"autumn"))%>%
arrange(record_id,month,day,year,season_month,plot_id,species_id,sex,hindfoot_length,weight,genus,hindfoot_length,weight,genus,species,taxa,plot_type)
i have been told that i need to use arrange as a call back but when i do it comes back as an error with it saying season_month column doesnt exist