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.

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to