dmat: Data Frames

Description Usage Arguments Value See Also Examples

Description

Like mat, but returns a data frame.

Usage

1
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

1
2
3
4
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

Example output

Attaching package: 'ramify'

The following object is masked from 'package:graphics':

    clip

     V1  V2
1 1e-01   6
2   2+5   7
3     3   8
4     4 9^2
5     5  pi
  V1 V2 V3 V4 V5 V6 V7 V8 V9 V10
a  1  2  3  4  5  6  7  8  9  10
b 11 12 13 14 15 16 17 18 19  20
c 21 22 23 24 25 26 27 28 29  30
    a  b  c
1   1 11 21
2   2 12 22
3   3 13 23
4   4 14 24
5   5 15 25
6   6 16 26
7   7 17 27
8   8 18 28
9   9 19 29
10 10 20 30

ramify documentation built on May 2, 2019, 5:58 a.m.