precision_on: Set or return precision_on layer binding

get_precision_onR Documentation

Set or return precision_on layer binding

Description

The precision_on variable is the variable used to establish numeric precision. This variable must be included in the list of target_var variables.

Usage

get_precision_on(layer)

set_precision_on(layer, precision_on)

Arguments

layer

A tplyr_layer object

precision_on

A string, a variable name, or a list of variable names supplied using dplyr::vars.

Value

For get_precision_on, the precision_on binding of the supplied layer. For set_precision_on the modified layer environment.

Examples

# Load in pipe
library(magrittr)
lay <- tplyr_table(mtcars, gear) %>%
  add_layer(
    group_desc(vars(mpg, disp), by=vars(carb, am)) %>%
    set_precision_on(disp)
  )

Tplyr documentation built on May 29, 2024, 10:37 a.m.