Santosh -
The simple answer to your question is to initialize
NewObject to NULL before the loop, i.e.
newObject = NULL
However, I should point out this is one of the most
inefficient ways to program in R. A far better way is
to allocate enough space for NewObject outside your
loop, an
the thing itself have purpose? Or do we, what's the word... imbue it."
- Jubal Early, Firefly
r-help-boun...@r-project.org wrote on 11/22/2010 10:14:51 AM:
> [image removed]
>
> [R] Check for is.object
>
> Santosh Srinivas
>
> to:
>
> r-help
>
Hello,
I am trying to recursively append some data from multiple files into a
common object
For this, I am using in a loop
NewObject <- rbind(NewObject,tempObject)
For the first loop, obviously there is no NewObject ... so I wanted to do
NewObject <- tempObject[0,]
Now when it loops again I w
3 matches
Mail list logo