Displaying 1 result from an estimated 1 matches for "colpart".
Did you mean:
collard
2001 Jul 04
2
boxplot(list(m[,1],...,m[,c]))
Given a matrix m, I would like to obtain a boxplot of the columns of m; in
other words, boxplot(list(m[,1],...,m[,ncol(m)])). At the moment, I am using
colpart <- function(m){
L <- list(rep(0,ncol(m)))
for(i in 1:ncol(m)){
L[[i]] <- m[,i] }
return(L)}
boxplot(colpart(m))
for this purpose. Surely there must be a more eloquent way!
Richard
-------------------------------
Richard Dybowski, 143 Village W...