Re: [R] Check for is.object

2010-11-22 Thread Phil Spector
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

Re: [R] Check for is.object

2010-11-22 Thread Jonathan P Daily
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 >

[R] Check for is.object

2010-11-22 Thread Santosh Srinivas
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