Learn R Programming

skimr (version 1.0)

skim_to_wide: Print skim result and return a single wide data frame of summary statistics

Description

Returns a wide data frame with one row per variable and NA for statistics not calculated for a given type. This faciliates future processing.

Usage

skim_to_wide(x, ...)

Arguments

x

A dataframe.

...

Further arguments passed to or from other methods.

Value

A wide data frame.

Examples

Run this code
# NOT RUN {
  skim_to_wide(iris)
  iris %>% skim_to_wide()
  iris %>% skim_to_wide() %>% dplyr::filter(type == "factor") %>% 
           dplyr::select(top_counts)
# }

Run the code above in your browser using DataLab