Hi, this is my first topic, sorry if it is not clear or that I did not choose the right category.
To explain the context, I am currently analyzing whether my species richness for 3 different years is significant. Here are the lines of code:
But Rstudio answers me:
Error in t.test.formula(donnee$RS ~ donnee$AnnÃ.e) :
grouping factor must have exactly 2 levels
This is not the first time this has happened to me, and I can't find a solution on the internet.
I tried swapping the 2 variables, or putting a point instead of the ~.
But no results...
Can someone answer me and explain to me what is wrong?