Learn R Programming

ramify (version 0.1.0)

dmat: Data Frames

Description

Like 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.

Usage

dmat(x, ...)

Arguments

x
A data vector, character string, or a list.
...
Aditional optional arguments passed on to mat.

Value

  • A dataframe.

See Also

mat, bmat.

Examples

Run this code
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