This will apply functions to a vector of objects.

DescribeObjects(objects, FUNS, env)

Arguments

objects

A list of objects to be described

FUNS

the functions which will describe the objects

env

An enviroment. If missing, the global environment will be used.

Details

1. Given a vector of objects, apply a vector of functions. This is most common when I want to apply both `str` and `summary` to a data frame.

2. How is that implemented in practice? I either want the output printed or I want to capture the output to print later, but I'm not sure. The easiest option would be to print everything.

3. And that's what I'll do.

Describe the objects

This may be used to quickly summarize a set of objects. Note that functions are called for their side effects of printing output

x may be given as a character vector or a list.

Examples

if (FALSE) { myFit1 <- lm(myData, y ~ x1 + x2) myFit2 <- lm(myData, y ~ x3) DesribeObjects(list(myFit1, myFit2), broom::tidy) }