[R] modifying a vector
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Sun Jun 30 11:28:59 CEST 2002
rossini at blindglobe.net (A.J. Rossini) writes:
> tim> I'm creating a random sample of 100 item and saving it to a
> tim> vector named 'iq'. I'd like to create a second vector
> tim> (iq_prime, say) by adding 20 to each element of the 'iq'
> tim> vector. Here's what I've tried.
>
> Note that "_" is assignment in S (and hence R, sigh...).
Soon to be deprecated, though... (but it will probably take a while
before we can reintroduce it as part of variable names).
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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