Learn R Programming

ramify (version 0.3.3)

dmat: Data Frames

Description

Like mat, but returns a data frame.

Usage

dmat(x, ...)

Arguments

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

Value

A data frame (i.e., an object of class "data.frame".

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