If a sequence is generated via "from:to" and "from" is a
vector and not
a scalar, R gives a warning that only the first value is used. If "to"
is a vector, there is no warning.
Example:
> (1:4):10 # warning
Warning in (1:4):10 : Numerical expression has 4 elements: only the first used
[1] 1 2 3 4 5 6 7 8 9 10> 1:(10:12) # NO warning
[1] 1 2 3 4 5 6 7 8 9 10
Andreas
--please do not edit the information below--
Version:
platform = i686-unknown-linux
arch = i686
os = linux
system = i686, linux
status = Unstable
status.rev = 0
major = 0
minor = 64.0
year = 1999
month = March
day = 19
language = R
Search Path:
.GlobalEnv, Autoloads, package:base
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._