May 2018
Beginner to intermediate
364 pages
7h 43m
English
In the previous section, by using the R language, we generated a data asset called final. To save it to a CSV file, we could use the write.csv() or write.table() functions, shown in the code here:
> write.csv(final,file="c:/temp/t.csv") > write.table(final,file="c:/temp/t2.txt",sep=";")
The separator for the write.csv() function is a comma, while we can specify our own separator for the write.table() function. To find out the other R functions starting with write, we could use the apropos() function, shown here:
> apropos("^write")
[1] "write" "write.csv" "write.csv2"
[4] "write.dcf" "write.ftable" "write.socket"
[7] "write.table" "writeBin" "writeChar"
[10] "writeClipboard" "writeLines"
For the following Python program, we ...
Read now
Unlock full access