Try this:

x <- data.frame(A = runif(10), B = rnorm(10))
lapply(x, shapiro.test)

On Mon, Jun 22, 2009 at 3:15 PM, Gonzalo Quiroga
<quirogagonzalo@gmail.com>wrote:

> Hi, I need help to perform a Shapiro.test on a data frame, I know that
> this test works only with vector but I guess there most be a way to
> permor it on a data frame instead of vactor by vector (i.e. I've got 40
> variables to analyze and its kinda annoying to do it one by one)
>
> Thanks to anyone that can help me.
>
>                                                         Gonzalo Quiroga
>
> ______________________________________________
> 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.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

	[[alternative HTML version deleted]]


