grapes-land-grapes: Land a value to variable from a pipeline.

Description Usage Arguments Details Value Examples

Description

%land% and %->% ("writearrow") copy a pipeline value to a variable on the right hand side. %land_% and %->_% copy a pipeline value to a variable named by the value referenced by its right hand side argument.

Usage

1
2
3
4
5
6
7
value %land% name

value %->% name

value %->_% name

value %land_% name

Arguments

value

value to write

name

variable to write to

Details

Technically these operators are not "-> assignment", so they might not be specifically prohibited in an oppugnant reading of some style guides.

Value

value

Examples

1
2
3
4
sin(7) %->% z1
sin(7) %->_% 'z2'
varname <- 'z3'
sin(7) %->_% varname

WinVector/replyr documentation built on Oct. 22, 2020, 8:07 p.m.