sprinkle_colnames: Column Names for 'dust' Tables

Description Usage Arguments Input Formats Author(s) See Also Examples

View source: R/sprinkle_colnames.R

Description

Assigns new column names to a table

Usage

1
2
3
4
5
6
7
sprinkle_colnames(x, ...)

## Default S3 method:
sprinkle_colnames(x, ...)

## S3 method for class 'dust_list'
sprinkle_colnames(x, ...)

Arguments

x

A dust object.

...

Column names for the table. See 'Input Formats'

Input Formats

When using named arguments (or a named vector), you may not mix named and unnamed elements. In other words, if one element is named, they must all be named. Unnamed elements are assigned to columns in sequential order.

Author(s)

Benjamin Nutter

See Also

sprinkle

Examples

1
2
3
4
5
6
7
8
9
x <- dust(lm(mpg ~ qsec + factor(am), data = mtcars)) 
x
x %>% sprinkle_colnames(term = "Term", statistic = "T")
x %>% sprinkle_colnames("Term", "Estimate", "SE", "T-statistic", "p-value")
## Not run: 
# Causes an error due to too few unnamed arguments
x %>% sprinkle_colnames("Term", "Estimate")

## End(Not run)

pixiedust documentation built on May 30, 2017, 8:17 a.m.