Message-ID: <3DB9C03B.BAE00778@noaa.gov>
Date: 2002-10-25T22:05:47Z
From: Robert Schick
Subject: refined reshape question
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._