For filenames you can do something like:
file = paste("resultsMatrix_', i, sep='')
For naming objects in the workspace, there is a way, but you really
don't want to do that. It is better to store them in a list, for
example:
resultList <- list()
for( i in 1:10){
resultList[[i]] <- ma
Thanks!
Double thanks to Phil, I used your guide to learn LaTeX many moons ago.
On Thu, Mar 13, 2008 at 1:26 PM, Greg Snow <[EMAIL PROTECTED]> wrote:
>
> For filenames you can do something like:
>
> file = paste("resultsMatrix_', i, sep='')
>
> For naming objects in the workspace, there is a
See ?paste and ?assign, those will get what you want done.
At least in the second case, you might consider using a list, however.
You can then avoid the use of 'for' loops by using functions such as lapply.
Best,
Erik Iverson
Economics Guy wrote:
> This is a question I have wanted to ask for a
3 matches
Mail list logo