gistlib
# Create a matrix mat <- matrix(1:9, nrow = 3, dimnames = list(c("A", "B", "C"), c("X", "Y", "Z"))) print(mat) # Change value at row "B", column "Y" to 100 mat["B", "Y"] <- 100 print(mat) 189 chars8 lines
# Create a matrix mat <- matrix(1:9, nrow = 3, dimnames = list(c("A", "B", "C"), c("X", "Y", "Z"))) print(mat) # Change value at row "B", column "Y" to 100 mat["B", "Y"] <- 100 print(mat)
gistlibby LogSnag