R Coding Example
Jump to navigation
Jump to search
An R Coding Example is a coding example of an R program.
- Context:
- It can be focused on:
- an R String Operation.
- an R Pattern Matching Expression.
- an R Conditional Statement.
- an R File Operation.
- an R Subroutine.
- an R Package.
- an R Data Structure.
- an R Scalars.
- an R Array Data Structure.
- an R Hash Data Structures.
- an R Arrays of Arrays.
- an R Array of Hashes.
- an R Hash of Arrays.
- an R Hash of Hashes.
- R References.
- R Persistent Data.
- R Predictive Modeling Example.
- …
- It can be focused on:
- Counter-Example(s):
- See: R Programming Language.
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)