grapes-set-grapes: Bind a 'bind' object to values.

Description Usage Arguments See Also Examples

Description

Used to bind variables in the local scope to values, typically returned from a function. A 'bind' object is created using the bind function and assigned to with this operator. Assigning this way will bind the parameters specified in the bind call to the values on the right-hand-side of the assignment.

Usage

1
bindings %<-% value

Arguments

bindings

A bindings object returned by the bind function.

value

Values in a list/vector to be bound to the variables.

See Also

bind

Examples

1
2
3
4
5
f <- function(x, y) c(x, y)
bind(a, b) %<-% f(1, 2)

g <- function(x, y) list(x, y)
bind(a, b) %<-% g(1, 2)

mailund/bindr documentation built on May 21, 2019, 11:06 a.m.