Pustaka Taratsa
R: Export

R: Export

Penulis: Onno Widodo Purbo

# Loading mtcars data data("mtcars") # Write data to txt file: tab separated values # sep = "\t" write.table(mtcars, file = "mtcars.txt", sep = "\t", row.names = TRUE, col.names = NA) # Write data to csv files: # decimal point = "." and value separators = comma (",") write.csv(mtcars, file = "mtcars.csv") # Write data to csv files: # decimal point = comma (",") and value separators = semicolon