Skip to content
Advertisement

merge different files into 1 text file in R

I have two files with one being text, and the other being a data frame, now I just want to merge them into one as a text file. With linux, I can use:

JavaScript

I wonder if we can do the same thing with R?

JavaScript

Thanks alot Phuong

Advertisement

Answer

We can use file.append:

JavaScript

Or if files are already imported into R, then write with append:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement