Slide 28
Slide 28 text
Outline
Introduction
Data Structures
Working with Data
Visualisation
Webapps
Integration with other Systems
Vector
Matrix
Array
Data Frames
Factors
List
Basic datastucture functions
Matrix - Demo 2
cells <- c("A","B","C","D","E","F","G","H","I")
rnames <- c("R1", "R2", "R3")
cnames <- c("C1","C2","C3")
m2 <- matrix(cells,nrow=3,ncol=3,byrow=TRUE,
dimnames=list(rnames,cnames))
m2
## C1 C2 C3
## R1 "A" "B" "C"
## R2 "D" "E" "F"
## R3 "G" "H" "I"
28 / 124