I want to test if the origin of a tadpole affects its metamorphosis date, meaning, if a tadpole's origin is from a pool in the north, would the metamorphosis be earlier than the metamorphosis of a tadpole originated from the south? to do that, I was hoping to use ANOVA test. my code looks like that:
DATE_OF_METAMORPHOSIS -> dmy_hms(DATE_OF_METAMORPHOSIS)
one.way <- aov(DATE_OF_METAMORPHOSIS ~ POPULATION, data = info_table)
it did compute something, but I'm not sure how R treated the dates in the DATE_OF_METAMORPHOSIS variable.. if anyone knows if my code did what I've described in words, or knows if R knows how to use dates as a continuance variable and how to do that, I would love the help! tnx!
example of my data:
info_table
ID | POPULATION | DATE_OF_METAMORPHOSIS|
---|------------|----------------------|
1 | 1 | 7/19/2021 12:01:00 AM|
2 | 2 | 7/29/2021 12:01:00 AM|
3 | 3 | 8/1/2021 12:01:00 AM|
4 | 1 | 8/4/2021 12:01:00 AM|
5 | 2 | 5/16/2021 12:01:00 AM|
6 | 3 | 5/14/2021 12:01:00 AM|
The two errors are:
mdy hms, notymd hms;POPULATION, it's name isorigin.Correct both errors and it's a simple matter of running
aov.Created on 2022-05-24 by the reprex package (v2.0.1)