R Coding Example

From GM-RKB
Jump to navigation Jump to search

An R Coding Example is a coding example of an R program.



References

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)