spread_: spread that understands units

View source: R/spread.R

spread_R Documentation

spread that understands units

Description

spread that understands units

Usage

spread_(data, key, value, ..., .units_col = NULL, .units_key = NULL,
  .col_precedence = TRUE)

Arguments

data

A data frame.

key

The bare (unquoted) name of a column whose values will be used as column headings

value

The bare (unquoted) name of a column whose values will populate the cells

...

parameters to pass to the underlying tidyr::spread function

.units_col

column associated with units in the value column

.units_key

a list of column names and units to attempt to set

.col_precendence

whether units found in the units_col take precedence over those found in the key


qPharmetra/PMDatR documentation built on April 7, 2024, 5:42 p.m.