[R] More elegant way to do this?

Rainer M KRug RMK at krugs.de
Mon May 15 10:33:34 CEST 2006


Hi

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

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

Department of Conservation Ecology and Entomology
University of Stellenbosch
South Africa




More information about the R-help mailing list