How to name variables on the fly in R?

Posted by Maiasaura on Stack Overflow See other posts from Stack Overflow or by Maiasaura
Published on 2010-04-20T22:38:26Z Indexed on 2010/04/20 22:43 UTC
Read the original article Hit count: 271

Filed under:
|

Is it possible to create new variable names on the fly?

I'd like to read data frames from a list into new variables with numbers at the end. Something like orca1, orca2, orca3...

If I try something like

paste("orca",i,sep="")=list_name[[i]]

I get this error

target of assignment expands to non-language object

Is there another way around this?

© Stack Overflow or respective owner

Related posts about r

    Related posts about coding