Chunk an expression

Share:

Description

chunkexpr replaces variables in an expression with a indexed version. It main use it to rewrite "normal" R expression into chunked versions that can be evaluated in a chunked-for-loop.

Usage

1
chunkexpr(expr, x = all.vars(expr), i = ".i", prefix = "")

Arguments

expr

expression vector or language object

x

character with variables to be chunked

i

name of index that will be used in the for loop, typically a ri or hi.

prefix

prefix for variables to be replaced.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.