env_tbls: Convert all data frames in environment into tibbles

Description Usage Arguments Value Examples

View source: R/tbl.R

Description

Converts data frames found in a given environment into tibbles (tbl_df)

Usage

1
env_tbls(env = globalenv(), row_names = TRUE)

Arguments

env

Name of environment from which data frames should be converted to tibbles. Defaults to global environment.

row_names

Logical indicating whether to create a row_names variable if non-auto row names are found.

Value

The function will print messages when converting occurs and it will print a final completion message, but otherwise returns nothing.

Examples

1
2
3
4
5
## data with row names
d <- data.frame(x = rnorm(5), y = rnorm(5), row.names = letters[1:5])

## convert data frames in global environment to tibbles
env_tbls()

tbltools documentation built on Feb. 9, 2019, 1:04 a.m.