[R] Request for help - adding text files to a data frame
drjimlemon at gmail.com
Mon Jun 26 12:14:36 CEST 2017
You can put all sorts of stuff into a text file simply by using the
for(i in 1:9) cat("C")
What you intend to do with a file like this is beyond me.
On Mon, Jun 26, 2017 at 12:35 PM, Bhaskar Mitra
<bhaskar.kolkata at gmail.com> wrote:
> Hello Everyone,
> I have a data frame which looks something like this:
> V1 <-c(1,2,3)
> V2 <-c(5,6,7)
> V3 <-c(9,10,11)
> df <- data.frame(V1,V2,V3)
> I want to add couple of text files at the beginning of df and save
> the df as a csv file.
> The csv file should look something like this:
> V1 V2 V3
> 1 5 9
> 2 6 10
> 3 7 11
> Any suggestions/advice in this regard.
> Thanks for your help,
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help