Learn R Programming

skimr (version 2.1.3)

to_long: Create "long" skim output

Description

Skim results returned as a tidy long data frame with four columns: variable, type, stat and formatted.

Usage

to_long(.data, ..., skim_fun = skim)

# S3 method for default to_long(.data, ..., skim_fun = skim)

# S3 method for skim_df to_long(.data, ..., skim_fun = skim)

Arguments

.data

A data frame or an object that can be coerced into a data frame.

...

Columns to select for skimming. When none are provided, the default is to skim all columns.

skim_fun

The skim function used.

Value

A tibble

Methods (by class)

  • default: Skim a data frame and convert the results to a long data frame.

  • skim_df: Transform a skim_df to a long data frame.

Examples

Run this code
# NOT RUN {
to_long(iris)
to_long(skim(iris))
# }

Run the code above in your browser using DataLab