lwith: Commands repeated on each list element

View source: R/lwith.R

lwithR Documentation

Commands repeated on each list element

Description

Repeats a set of commands for each element of a list. The commands are executed within the with command, so that variable names need not be quoted.

Usage

lwith(l, ...)

Arguments

l

A list. Each element of the list is a data.frame.

...

A set of commands to be executed

See Also

with

Examples

iris %>% 
  split(.$Species) %>% 
  lwith({plot(Sepal.Length, Sepal.Width, main = Species[1])})

thomasgstewart/tgsify documentation built on Aug. 1, 2024, 4:55 p.m.