[R] Null

Jim Lemon jim at bitwrit.com.au
Fri May 6 10:43:16 CEST 2011


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



More information about the R-help mailing list