[R] More elegant way to do this?

From: Rainer M KRug <RMK_at_krugs.de>
Date: Mon 15 May 2006 - 18:33:34 EST


I am using R 2.2.0 under SuSE 10.

I am creating a matrix MT to be used by barplot.

DietF <- read.csv ("DietFem.csv", header = TRUE, as.is=TRUE) attach (DietF)

PP <- array(c(bud,flower,shoot,melon,seed.pod,detritus,other), c(16,7)) M <- paste (Month)
MT <- t(PP)

It works, but I have the feeling, there is a more elegant way of doing it, but I can't think of it.

Thanks a lot,


Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)

Department of Conservation Ecology and Entomology
University of Stellenbosch
South Africa

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Mon May 15 18:41:41 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 15 May 2006 - 20:10:06 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.