Learn R Programming

tbltools (version 0.1.0)

env_tbls: Convert all data frames in environment into tibbles

Description

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

Usage

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

Run this code
# NOT RUN {
## 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()

# }

Run the code above in your browser using DataLab