[R] How to display data content on a only row?

Dieter Menne dieter.menne at menne-biomed.de
Tue May 12 14:31:13 CEST 2009




Thom_249 wrote:
> 
> I got them from a Matrix on with I use the applyfunction tu compute the
> mean columns by columns
> print(apply(matSD,2,mean))
> 

matSD = matrix(round(rnorm(20),2),nrow=4)
cat(matSD)
print(matSD)
dput(matSD) # How to send this matrix to r-help

newMat = apply(matSD,2,mean)
print(newMat)
cat(newMat,"\n")
dput(newMat) # Good for r-help questions



-- 
View this message in context: http://www.nabble.com/How-to-display-data-content-on-a-only-row--tp23497437p23501655.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list