Debian Codegraph @

man/skim-attr.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/skim_obj.R
3 \name{skim-attr}
4 \alias{skim-attr}
5 \alias{data_rows}
6 \alias{data_cols}
7 \alias{df_name}
8 \alias{dt_key}
9 \alias{group_names}
10 \alias{base_skimmers}
11 \alias{skimmers_used}
12 \title{Functions for accessing skim_df attributes}
13 \usage{
14 data_rows(object)
15
16 data_cols(object)
17
18 df_name(object)
19
20 dt_key(object)
21
22 group_names(object)
23
24 base_skimmers(object)
25
26 skimmers_used(object)
27 }
28 \arguments{
29 \item{object}{A \code{skim_df} or \code{skim_list}.}
30 }
31 \value{
32 Data contained within the requested \code{skimr} attribute.
33 }
34 \description{
35 These functions simplify access to attributes contained within a \code{skim_df}.
36 While all attributes are read-only, being able to extract this information
37 is useful for different analyses. These functions should always be preferred
38 over calling base R's attribute functions.
39 }
40 \section{Functions}{
41 \itemize{
42 \item \code{data_rows()}: Get the number of rows in the skimmed data frame.
43
44 \item \code{data_cols()}: Get the number of columns in the skimmed data frame.
45
46 \item \code{df_name()}: Get the name of the skimmed data frame. This is only
47 available in contexts where the name can be looked up. This is often not
48 the case within a pipeline.
49
50 \item \code{dt_key()}: Get the key of the skimmed data.table. This is only
51 available in contexts where \code{data} is of class \code{data.table}.
52
53 \item \code{group_names()}: Get the names of the groups in the original data frame.
54 Only available if the data was grouped. Otherwise, \code{NULL}.
55
56 \item \code{base_skimmers()}: Get the names of the base skimming functions used.
57
58 \item \code{skimmers_used()}: Get the names of the skimming functions used, separated
59 by data type.
60
61 }}