Dear Rxperts,

Is there a way to exclude NAs while computing the summary statistics using
"tables" package?

I would also like the "count" (length(x,na.rm=T) included for each column
...

a <- data.frame(p=rep(c("A","B"),each=10,len=30),
a=rep(c(1,2,3),each=10),id=seq(30),
b=round(log(runif(30,-10,20))),
c=round(log(runif(30,40,70))))

tabular(((p=factor(p))*(a=factor(a))+1) ~ (b + c)* ((N=1)+mean+sd),data=a)

Thanks so much..
Santosh

        [[alternative HTML version deleted]]

______________________________________________
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