mydata = read.table('
# or alternatively mydata = read.csv('mydata_text_file.csv',
# write data to text file
write.csv2(mydata, file='mydata.csv', quote = FALSE) write.table(mydata, file = 'mydata.txt', append = FALSE, quote = FALSE, sep = "\t", eol = "\n", na = "missing", dec = ".", row.names = TRUE, col.names = NA, qmethod = "double") # write strings to text file, line by line
fid <- file('output_file.txt') writeLines( mytext , fid) close(fid) A1 A2 A3 |
File operations >