Displaying 1 result from an estimated 1 matches for "grpn".
Did you mean:
grin
2004 Nov 29
2
[BASIC] Solution of creating a sequence of object names
...;, 1:10, sep=""))
assign(obj, NULL)
>
### or
>
> for(i in 1:10) assign(paste("my.ftn", i, sep=""),
NULL)
>
(3) James Holtman's solution
# For example, if you want to generate 10 groups
# of 5 random numbers and store them
# under then names "GRPn" where n is 1 -> 10,
# the following can be used:
#
> Result <- list() # create the list
> for (i in 1:10) Result[[paste("GRP", i, sep='')]] <-
runif(5) # store each result
> Result # print out the data
$GRP1
[1] 0.2655087 0.3721239 0.5728534 0.90...