Message-ID: <BLU436-SMTP2130ED5750CF3C7DEFB5BFCD94F0@phx.gbl>
Date: 2016-05-24T20:59:42Z
From: Beatriz González DomĂnguez
Subject: Sprintf to call data frame from environment
In-Reply-To: <mailman.5.1442916002.27623.r-help@r-project.org>
In my environment I have a data frame called Samples_1.txt.
From this data frame I need to get variable V1. My code doesn't work.
Note: I need to do it in this way because I have the code into a for loop.
sprintf("Samples_%s.txt", 1)$V1