Reputation: 1
using R to run a Kruskal-Wallis test to see if there is a difference between 4 species plot counts, over time.
Code I'm using is:-
kruskal.test(Plot_count$SPIECES ~ Time2, data = AMO_data_long)
But don't trust the results as appear to only test if there is a difference of plot counts over time and not test the frequency of plot counts between species over time. The data set has a column for species, time and plot count. how do you group plot count per species and test the difference in species frequency over time?
Using SPIECES, Time2 and Plot_count in code.
suggestions welcomed.
P.S. SPIECES is spelt incorrectly but it works :p
Upvotes: 0
Views: 91