ys_mutate: Mutate yspec item data

View source: R/ys-tidy.R

ys_mutateR Documentation

Mutate yspec item data

Description

Mutate yspec item data

Usage

ys_mutate(x, ...)

Arguments

x

A yspec object.

...

Named lists of column data to update; only specific items can be mutated at this time; see details.

Details

Items that can be mutated: - 'short' - 'unit' - 'label'

Value

A 'yspec' object

See Also

[update_short()]

Examples


spec <- ys_help$spec()
xpec <- yspec:::ys_mutate(spec, TIME = list(unit = "d"), TAD = list(unit = 'w'))
spec$TIME
spec$TAD


metrumresearchgroup/yspec documentation built on May 24, 2024, 12:48 a.m.