3. R programming language in Data science

Exporting Files in R

You can also export different files to another location in R.

1. To export a table: Write.table(file_name, “c:/file_name.txt”, sep=“\t”)

2. To export an Excel file: Write.xls(file_name, “c:/file_name.txt”, sep= “\t”)

3. To export a CSV file: Write.csv(file_name, “c:/file_name.csv”)

Leave a Reply

Your email address will not be published. Required fields are marked *