Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

skim-attr

Functions for accessing skim_df attributes


Description

These functions simplify access to attributes contained within a skim_df. While all attributes are read-only, being able to extract this information is useful for different analyses. These functions should always be preferred over calling base R's attribute functions.

Usage

data_rows(object)

data_cols(object)

df_name(object)

dt_key(object)

group_names(object)

base_skimmers(object)

skimmers_used(object)

Arguments

object

A skim_df or skim_list.

Value

Data contained within the requested skimr attribute.

Functions

  • data_rows: Get the number of rows in the skimmed data frame.

  • data_cols: Get the number of columns in the skimmed data frame.

  • df_name: Get the name of the skimmed data frame. This is only available in contexts where the name can be looked up. This is often not the case within a pipeline.

  • dt_key: Get the key of the skimmed data.table. This is only available in contexts where data is of class data.table.

  • group_names: Get the names of the groups in the original data frame. Only available if the data was grouped. Otherwise, NULL.

  • base_skimmers: Get the names of the base skimming functions used.

  • skimmers_used: Get the names of the skimming functions used, separated by data type.


skimr

Compact and Flexible Summaries of Data

v2.1.3
GPL-3
Authors
Elin Waring [cre, aut], Michael Quinn [aut], Amelia McNamara [aut], Eduardo Arino de la Rubia [aut], Hao Zhu [aut], Julia Lowndes [ctb], Shannon Ellis [aut], Hope McLeod [ctb], Hadley Wickham [ctb], Kirill Müller [ctb], RStudio, Inc. [cph] (Spark functions), Connor Kirkpatrick [ctb], Scott Brenstuhl [ctb], Patrick Schratz [ctb], lbusett [ctb], Mikko Korpela [ctb], Jennifer Thompson [ctb], Harris McGehee [ctb], Mark Roepke [ctb], Patrick Kennedy [ctb], Daniel Possenriede [ctb], David Zimmermann [ctb], Kyle Butts [ctb], Bastian Torges [ctb], Rick Saporta [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.