I am trying to run a repeated measures one way ANOVA test and I keep getting errors. My data is height of plants collected at 3 time points in 6 treatments. I have 3 plants per treatment that were followed over time.
The code im running is:
TestData <- TestData %>%
gather(key="Time", value = "Height", T1, T2, T3)%>%
convert_as_factor(ID,Time)
View(TestData)
The error message I am receiving is:
Error in tbl_at_vars()
:
! Can't select columns that don't exist.
Column ID
doesn't exist.
Run rlang::last_trace()
to see where the error occurred.
I am wondering if my data is set up incorrectly in the csv file?
I have tried everything I know of... plz help