Description Usage Arguments Details
to_*
functions take raw input (which is a list with 'dat' and 'format' components) and produce a base R type (list, data.frame or matrix) or something slightly special.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
x |
An MKM object, similar to that produced by |
Using custom functions, MKM
can produce any data structure. However, support for three fundamental types are provided.
to_lst
: Produces a list by reading names from column headers and disregarding any row names.
to_tlst
: Produces a list using names from row headers (and disregarding column headers)
to_df
: Produces a data.frame by reading names from column headers and creating an .id
column to hold information in row headers (if any).
to_tdf
: Produces a data.frame using names from row headers and creating an .id
column to hold information in column headers (if any).
to_mat
: Produces a matrix, with dimnames
set from row and column headers in the direction they appear.
to_tmat
: Same as to_mat
but transposed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.