filmov
tv
Create List of Matrices in R (Example) | How to Combine Multiple Matrix Objects | list() Function

Показать описание
R code of this video:
mat1 <- matrix(1:15, ncol = 3) # Create first example matrix
mat1 # Print first example matrix
mat2 <- matrix(letters[1:16], ncol = 4) # Create second example matrix
mat2 # Print second example matrix
my_list <- list(mat1, mat2) # Create list
my_list # Print list
Follow me on Social Media:
mat1 <- matrix(1:15, ncol = 3) # Create first example matrix
mat1 # Print first example matrix
mat2 <- matrix(letters[1:16], ncol = 4) # Create second example matrix
mat2 # Print second example matrix
my_list <- list(mat1, mat2) # Create list
my_list # Print list
Follow me on Social Media: