View source: R/list_to_matrix.R
list_to_matrix | R Documentation |
Converting the data with class list to the data with class matrix
list_to_matrix(x, item = NA)
x |
Data with class list |
item |
After converting list to matrix, using NA to pad out the blanks within matrix |
Data with class matrix
Zongzheng Chai,chaizz@126.com
# Creating a list data "datalist", and covert "datalist" to a matrix data "datamat"
datalist<-list(dataA=1:5,dataB=1:10,dataC=1:15,dataD=1:20)
datamat<-list_to_matrix(datalist)
datamat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.