[R] convert strings to object names

Adaikalavan Ramasamy
Thu, 19 Aug 2004 14:47:23 -0000

assign("dat", get(paste("dat", no, sep="")))

or simply

 dat <- get(paste("dat", no, sep=""))


On Thu, 2004-08-19 at 15:15, Gudrun Jonasdottir wrote:
> Dear R-Help list,
>
> I have a problem with convertions of strings. I want to use the function
> "paste()" to create an object name and then use that character