tabular: Format a table in roxygen documentation of function in a...

View source: R/tabular.R

tabularR Documentation

Format a table in roxygen documentation of function in a package

Description

modified version of func in help section on formatting in roxygen2 package

Usage

tabular(df, ...)

Arguments

df

data.frame required

...

optional parameters passed through to lapply(df, format, ...)

Value

Returns text that can be pasted into documentation of a function or data in a package

See Also

Help on formatting in roxygen2

Examples

  tabular(mtcars[1:5, 1:5])
  tabular(df = data.frame(a=7:16, b='stuff', c=999, d=c('blah','junk')) )

ejanalysis/analyze.stuff documentation built on April 2, 2024, 10:10 a.m.