[R] shapiro.test

David Winsemius dwinsemius at comcast.net
Wed May 26 23:27:12 CEST 2010


On May 26, 2010, at 3:36 PM, Stefan Scheurer wrote:

>
> Hi,
> I am not so sure about an error note I got when using shapiro.test.
> I imported some data into R by wrinting it into a .txt file via
>> tab1<-read.table("etc....txt",header=T)
>> attach(tab1)
> 	The following object(s) are masked _by_ .GlobalEnv :
> 	 ozon
>> ozon$V1 [1] 2.5 3.0 5.6 4.7 6.5 6.7 1.7 5.3 4.6 7.4 5.4 4.1 5.1 5.6  
>> 5.4 6.1 7.6[18] 6.2 6.0 5.5 5.8 8.2 3.1 5.8 2.6

This would imply that ozon is a list or dataframe.

> Now I wanted to use the shapiro.test:
>> shapiro.test(ozon)
> Fehler in sort.list(x[complete.cases(x)]) :   'x' must be atomic for  
> 'sort.list'Have you called 'sort' on a list?

And you tried to give the whole list to a function that only wants a  
vector.


> Can anyone help please?
> Best regards
> 		 	   		
> _________________________________________________________________
> Hotmail: Leistungsstarke kostenlose E-Mails mit Sicherheit von  
> Microsoft.
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list