[R] refined reshape question

Robert Schick Robert.Schick at noaa.gov
Sat Oct 26 00:05:47 CEST 2002


I tried something else, which gets me close:
> klam.wide <- reshape(klam.merge, idvar="stream",timevar="lulc",direction="wide",drop=c("x","sumlength"))

If I don't drop the "sumlength" variable, I get 
sumlength.0 pct.lgth.0 sumlength.11 pct.lgth.11 ...

Anyway to get sum length in just once while reshaping?
-- 
Rob Schick
Research Associate
NOAA Fisheries
Santa Cruz Lab
110 Shaffer Road
Santa Cruz, CA 95060
Phone: 831.420.3960
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list