Format a table for inclusion in roxygen docs

tabular(df, ...)

Arguments

df

data.frame

...

additional options passed to format

References

<http://r-pkgs.had.co.nz/man.html>

Examples

df <- data.frame(a_b = 1, b_c = 2, stringsAsFactors = FALSE)
tabular(df)
#> [1] "\\tabular{rr}{\n\\bold{a_b} \\tab \\bold{b_c} \\cr\n1 \\tab 2\n}\n"