DescribeObjects: I'm throwing in the towel on this function. I'm just not...

Description Usage Arguments Details Examples

View source: R/Objects.R

Description

This will apply functions to a vector of objects.

Usage

1

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

1
2
3
4
5
6
7
## Not run: 
myFit1 <- lm(myData, y ~ x1 + x2)
myFit2 <- lm(myData, y ~ x3)

DesribeObjects(list(myFit1, myFit2), broom::tidy)

## End(Not run)

represtools documentation built on Oct. 4, 2019, 1:04 a.m.