Re: [R] apply vs. sapply

About this list Date view Thread view Subject view Author view Attachment view

From: Christian Schulz (ozric@web.de)
Date: Sun 22 Dec 2002 - 05:43:07 EST


Message-id: <001e01c2a920$ee09ea30$71b407d5@c5c9i0>


....hmm sorry "sometimes after several experiments" my graphic.device
(W2000/1.6.1)didn't popUp & only
a new start helps, but now it works :-)

# hermes is data.frame
apply(hermes,2,hist) #without names
sapply((1:ncol(hermes)),function(x) hist(hermes[,x],main=names(hermes)[x]))
#with col.names

thanks & regards,christian

______________________________________________
R-help@stat.math.ethz.ch mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jun 2004 - 09:31:59 EST