Message-ID: <3C925F8B-00E2-4551-85EB-90DD70397E3B@comcast.net>
Date: 2009-11-17T23:54:23Z
From: David Winsemius
Subject: Perform operations on dataframes called with paste in loops
In-Reply-To: <26399586.post@talk.nabble.com>
On Nov 17, 2009, at 6:14 PM, separent wrote:
>
> In a loop, I compose the name of a csv file using paste, then read
> it (e.g.,
> dataset1.csv, dataset2.csv, etc). The name of the dataframe assigned
> to the
> imported csv is also composed with paste (e.g., dataset1, dataset2,
> etc.).
> Now I want to perform operations on the dataframes dataset1,
> dataset2, etc.
> However, the paste function only renders a string on which I can
> not, for
> example, do operations like
> plot(paste("dataset",i,"[,1]",sep=""),paste("dataset",i,"[,
> 2]",sep="")). How
> could I call the dataframe instead of the string representing its
> name?
?get
(It's also in the FAQ.)
--
David