Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

visit

Visit'em all


Description

Apply a list of functions to each level in a nested parse table. pre_visit() applies funs before it proceeds to the children, (that is, starts from the outermost level of nesting progressing to the innermost level), post_visit() proceeds to its children before applying the functions (meaning it first applies the functions to the innermost level of nesting first and then going outwards).

Usage

pre_visit(pd_nested, funs)

post_visit(pd_nested, funs)

Arguments

pd_nested

A nested parse table.

funs

A list of transformer functions.

See Also

Other visitors: visit_one()


styler

Non-Invasive Pretty Printing of R Code

v1.4.1
MIT + file LICENSE
Authors
Kirill Müller [aut], Lorenz Walthert [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.