On 05/05/2011 10:48 PM, pcc wrote:
This is probably a very simple question but I am completely stumped!I am
trying to do shapiro.wilk(x) test on a relatively small dataset(75) and each
time my variable and keeps coming out as 'NULL', and

shapiro.test(fcv)
Error in complete.cases(x) : no input has determined the number of cases

my text file looks like this:

Hi pcc,
I think the problem may be in the way you are reading in the data. Try this (I named the data file "null.csv"):

read.csv("null.csv")
shapiro.test(fcv[,1])

Jim

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to