mat
, dmat
creates a data frame from the given set of
values. These values can be represented by a data vector, a character
string, or a list of vectors.dmat(x, ...)
mat
.dataframe
.mat
, bmat
.dmat('1e-01, 2+5, 3, 4, 5; 6, 7, 8, 9^2, pi', rows = FALSE)
z <- list(a = 1:10, b = 11:20, c = 21:30)
dmat(z) # list elements form rows
dmat(z, rows= FALSE) # list elements form columns
Run the code above in your browser using DataLab