search for: hurz

Displaying 1 result from an estimated 1 matches for "hurz".

Did you mean: hurt
2002 Jul 11
1
How to get relevant dimnames from apply() ?
Hello, in order to vectorize task (of plotting barplots), I use, as probably all R-folks, function apply() instead of for() loop. <R> testarr<-matrix(1:30, nrow=5) rownames(testarr)<-letters[1:5] colnames(testarr)<-LETTERS[1:6] apply(testarr,1,function(x) {x11(); barplot(x)}) #the funcion used is actually more compex, but it doesn't matter </R> Now, how I can propagate