Learn R Programming

tidytidbits (version 0.3.2)

tuple_assignment: Infix operator for python-style tuple assignment

Description

Infix operator for python-style tuple assignment

Usage

l %=% r

g(...)

Arguments

l

left-hand side: "tuple" or variables created by g()

r

right-hand side: Vector to assign to left-hand side variable

...

Left-hand side variables to group

Value

Last assigned value

Examples

Run this code
# NOT RUN {
g(a,b) %=% c(1,2) # equivalent to a <- 1; b <- 2
# }

Run the code above in your browser using DataLab