I have been trying to perform the Shapiro test on my data with no success recently, I read some topics online which hasn't appeared to help me. The first command I wrote is:
shapiro.test(as.numeric(recup$Temps == "med"))
Which gave me the error:
all 'x' values are identical
Afterwards, I wrote this second command
shapiro.test(recup[recup$Temps == "med"])
Which gave me the error:
is.numeric(x) is not TRUE
Does anyone have any suggestion or can offer their own experience on how to write the correct command, essentially helping me to fix the errors in console that I am encountering.