Greetings!
I come to R by way of Matlab. One feature in Matlab I miss is its
"end" keyword. When you put "end" inside an indexing expression, it
is interpreted as the length of the variable along the dimension being
indexed. For example, if the same feature were implemented in R:
my.vector[5:e
It looks to me like what I want to do isn't possible. I've been
reading the "R Language Definition" manual more, and have realized
that the "for" function is a .Primitive, not an enclosure. This
means that its arguments are passed by value, so I don't think it is
possible to access them from wit
I'm sorry if I wasn't clear before...
Although it is hidden syntactically, a for-loop construct is
implemented
by a call to the "for" function:
"for"(var, list, expr)
...where var is the iteration variable, list is the sequence of
values
assigned to var on successive iterations, and expr is the
Greetings,
I have been playing around with the R/Parallel package, which can farm out the
computation of a for-loop among multiple worker processes. Each worker gets a
chunk of the for-loop iterations; for example, if you have two workers and
for(x in 1:1000){...}, one worker would typically g
4 matches
Mail list logo