Skip to content

Instantly share code, notes, and snippets.

@geofferyzh
Created April 16, 2012 18:06
Show Gist options
  • Save geofferyzh/2400401 to your computer and use it in GitHub Desktop.
Save geofferyzh/2400401 to your computer and use it in GitHub Desktop.
RinAction - R Data Structure - Arrays
#################################
# 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