Created
April 16, 2012 18:06
-
-
Save geofferyzh/2400401 to your computer and use it in GitHub Desktop.
RinAction - R Data Structure - Arrays
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################# | |
# Arrays # | |
################################# | |
# Creating an array | |
dim1 <- c("A1", "A2") | |
dim2 <- c("B1", "B2", "B3") | |
dim3 <- c("C1", "C2", "C3", "C4") | |
z <- array(1:24, c(2, 3, 4), dimnames = list(dim1, dim2, dim3)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment