[R] Sprintf to call data frame from environment

Beatriz aguitatierra at hotmail.com
Tue May 24 23:01:28 CEST 2016

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. Thanks!

	sprintf("Samples_%s.txt", 1)$V1

Note: I need to do it in this way because I have the code into a for loop.

More information about the R-help mailing list