augment: Modify a variable.

Description Usage Arguments Value Author(s) See Also Examples

Description

Assigns to a variable the result of a transformation applied to that variable.

Usage

1
x 

Arguments

x

A variable to assign to.

y

An expression, interpreted in the manner of chain.

Value

The rvalue of the assignment.

Author(s)

Peter Meilstrup

See Also

chain put alter

Examples

1
2
3
4
5
6
library(stringr)
x <- 'a'
x %<~% toupper
x %<~% str_dup(3)
x %<~% rep(3)
x %<~% .[2:3]

crowding/vadr documentation built on May 14, 2019, 11:33 a.m.