I have used the same code before, and Date is indeed characters. Would changing them into numeric fix this? Here is the link from my previous post (sorry for not providing it first, I am rather new in this):
Hello,
I have been trying to perform a simple one way anova with the data I imported from an Excel sheet. Data was loaded properly and I checked if the table had had any issue (it didn't seem it had).
However, when performing the one way anova with the data from two of the columns, I got two errors. Here is my full code with the error:
library(readxl)
Species_measurement_merged <- read_excel("Species_measurement_merged.xlsx")
View(Species_measurement_merged)
data <- Species_measurement_merged
one.way <- aov(WaterPot_Dawn ~ Art, data = data)
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) <-…