I am having trouble getting an ANOVA done because the variables from a table I want to analyze are not found by the program. I would check spelling again, but in this case it is a three letter name, so I guess at least I know that is not the problem. The table seems to be properly loaded and everything appears in the summary, so not sure what mistake I am making. My code is:
I am afraid I don't undertand you. Did I make a typo in my code? My dataframe is called data2, so I thought the aov line had to include it as "data2=data" in order to point out what is my dataframe for my analysis. Should it be written differently?
one.way <- aov(Art ~ WaterPot_Dawn, data = data2) #NAs introduced by coercion
Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :
NA/NaN/Inf in 'y'
In addition: Warning message:
In storage.mode(v) <- "double" : NAs introduced by coercion
Any idea on what could be causing this? I have tried with having NA and "-" to represent NA values, but neither seem to work. Should I create a new thread for this problem? Thank you.