chain.df: Pass an object through a dataframe converting chain

Description Usage Details See Also Examples

Description

chain.df returns an object as a Data Frame.

Usage

1
chain.df(x, col_name = NULL, row_name = NULL)

Details

Most of the time when manipulating data in a 'pipe' converting an object or array into a data frame is simplest, but comes with varying drawbacks and I don't normally set opitions(stringsAsFactors=F) as a default. This allows passing a melted or converted object in a chain and setting the class on each column as well as renaming the defaults or including the row names as a column

See Also

Other startup functions: adf, dev.opts_in, packs.hush, parse.file_ext, ul.as

Examples

1
2
3
4
5
6
> letters %>% chain.df('alphabet')

> A data frame with 26 observations on the following 1 variables.
> \describe{
> \item{alphabet}{a character vector}\emph{ex:a}
> }

Rterial/Rtbase documentation built on May 9, 2019, 10:35 a.m.