See minor comment below
-Don
At 8:07 PM + 8/26/09, Oliver Bandel wrote:
<- first part of email omitted ->
<
For many entries, it would be faster, if you just allocate
the array that should be written, by just writing 0 into it,
or empty strings or something like this...
mydat[1:100] <-
trying to do?
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
On Behalf Of Noah Silverman
Sent: Wednesday, August 26, 2009 2:20 PM
To: r help
Subject: [R] Managing output
Hi,
Is there a way to build up a vector, item by item. In per
t; loop construct can be avoided so you don't
have to think about messy indexing. What exactly are you trying
to do?
-Original Message-
From: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org] On Behalf Of Noah Silverman
Sent: Wednesday, August 26, 2009 2:20 PM
To: r
d tasks, the
>>> apply/sapply/lapply/mapply family of functions?
>>>
>>> In general, the "for" loop construct can be avoided so you don't
>>> have to think about messy indexing. What exactly are you trying to do?
>>>
>>> -Orig
Oliver Bandel first.in-berlin.de> writes:
[...]
> For many entries, it would be faster, if you just allocate
> the array that should be written, by just writing 0 into it,
> or empty strings or something like this...
> > mydat[1:100] <- 0
> > mydat
> [1] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
On 26/08/2009 4:06 PM, Rolf Turner wrote:
On 27/08/2009, at 8:00 AM, Duncan Murdoch wrote:
On 26/08/2009 3:20 PM, Noah Silverman wrote:
Hi,
Is there a way to build up a vector, item by item. In perl, we can
"push" an item onto an array. How can we can do this in R?
I have a loop that gener
Noah Silverman smartmediacorp.com> writes:
>
> Hi,
>
> Is there a way to build up a vector, item by item. In perl, we can
> "push" an item onto an array. How can we can do this in R?
> I have a loop that generates values as it goes. I want to end up with a
> vector of all the loop results.
On 27/08/2009, at 8:00 AM, Duncan Murdoch wrote:
On 26/08/2009 3:20 PM, Noah Silverman wrote:
Hi,
Is there a way to build up a vector, item by item. In perl, we can
"push" an item onto an array. How can we can do this in R?
I have a loop that generates values as it goes. I want to end up
On 26/08/2009 3:20 PM, Noah Silverman wrote:
Hi,
Is there a way to build up a vector, item by item. In perl, we can
"push" an item onto an array. How can we can do this in R?
I have a loop that generates values as it goes. I want to end up with a
vector of all the loop results.
In perl i
n...@r-project.org] On
> Behalf Of Noah Silverman
> Sent: Wednesday, August 26, 2009 2:20 PM
> To: r help
> Subject: [R] Managing output
>
> Hi,
>
>
> Is there a way to build up a vector, item by item. In perl, we can
> "push" an item onto an array. How can we
tly are you trying to do?
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of Noah Silverman
Sent: Wednesday, August 26, 2009 2:20 PM
To: r help
Subject: [R] Managing output
Hi,
Is there a way to build up a vector, item by item
Hi,
Is there a way to build up a vector, item by item. In perl, we can
"push" an item onto an array. How can we can do this in R?
I have a loop that generates values as it goes. I want to end up with a
vector of all the loop results.
In perl it woud be:
for(item in list){
result <- 2
12 matches
Mail list logo