Run »
thismatrix <- matrix(c("apple", "banana", "cherry", "orange"), nrow = 2, ncol = 2) thismatrix
[,1] [,2] [1,] "apple" "cherry" [2,] "banana" "orange"