yuck: Ye Upsold Comprehension Kit

Description Usage Arguments Examples

Description

See Examples.

Usage

1
":="(left, right, debug = FALSE)

Arguments

left

The variable to which to assign the output.

right

The for-loop(s) to parse.

debug

A boolean. Toggles whether to print the final expression parsed by yuck.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
a := for(i in 1:5) i^2
a

a := for(i in 1:5) i %in% 1:4
a

a := for(i in 1:5) for(j in 1:7) (i - 1)^2 + (j - 1)^2
matrix(a, 7, 5)

## End(Not run)

tpq/yuck documentation built on May 27, 2019, 1:09 p.m.