search for: objectn

Displaying 2 results from an estimated 2 matches for "objectn".

Did you mean: objects
2009 Jun 15
1
Create R object
...2), a2=matrix(rnorm(4),2,2),a3=matrix(rnorm(4),2,2)). Here I only use three elements for illustration, and in fact the length of lst, n, is unknown in advance. I want to define an object for each element of this lst, and the objects have names like "object1", "object2",...,"objectn". I could use a loop like the following: for (i in 1:length(lst)){ assign(paste("object",i,sep=""),lst[[i]]) } I wonder if there's a way to avoid this loop? 2. I want to validate whether all of the "object"s have the same dimension, that is, whether dim(o...
2009 Jun 15
0
books on Time serie
...a3=matrix(rnorm(4),2,2)). Here I only use > three elements for illustration, and in fact the length of lst, n, > is unknown in advance. I want to define an object for each element > of this lst, and the objects have names like "object1", > "object2",...,"objectn". I could use a loop like the following: > for (i in 1:length(lst)){ > assign(paste("object",i,sep=""),lst[[i]]) > } > > I wonder if there's a way to avoid this loop? > > > 2. > I want to validate whether all of the "object"s have t...