R File Operation
Jump to navigation
Jump to search
A Perl File Operation is a File Operation expressed in the R Programming Language.
- …
- Counter-Example(s):
- See: R Coding Example.
References
- http://cran.r-project.org/doc/manuals/R-data.html
- http://personal.ee.surrey.ac.uk/Personal/R.Bowden/C/fileops.html
Examples
- reading from a file
array <- read.csv("~/data/documentClickedTermids.csv", header=F) ; array <- read.table('~/data/vocabClickedTerms.csv', header=FALSE, stringsAsFactors=FALSE, sep=',')
- writing to a file
write.csv(array, file = '~/data/documentClickedTermids.csv', row.names = FALSE)