Working with files lets you read data into R and save results for later. R provides simple functions to read/write text and CSV files.
read.csv()
and write.csv()
for CSV files — perfect for tabular data!
writeLines()
— write lines of text to a filereadLines()
— read lines of text from a filewrite.csv()
/ read.csv()
— read/write CSV filesfile.create()
— create empty filesfile.remove()
— delete files