Skip to contents

In addition to the information from stamp_set, stamp_x_attr generates information about the attributes of the R object, including basic descriptive stats.

Usage

stamp_x_attr(x)

Arguments

x

R object to write to disk as per limitations of file format.

Value

list of attributes

See also

Other stamp functions: stamp_confirm(), stamp_get(), stamp_read(), stamp_save(), stamp_set(), stamp_time()

Examples

x <- data.frame(a = 1:10, b = letters[1:10])
stamp_x_attr(x)
#> $names
#> [1] "a" "b"
#> 
#> $class
#> [1] "data.frame"
#> 
#> $row.names
#>  [1]  1  2  3  4  5  6  7  8  9 10
#> 
#> $skim
#> ── Data Summary ────────────────────────
#>                            Values
#> Name                       x     
#> Number of rows             10    
#> Number of columns          2     
#> _______________________          
#> Column type frequency:           
#>   character                1     
#>   numeric                  1     
#> ________________________         
#> Group variables            None  
#> 
#> ── Variable type: character ────────────────────────────────────────────────────
#>   skim_variable n_missing complete_rate min max empty n_unique whitespace
#> 1 b                     0             1   1   1     0       10          0
#> 
#> ── Variable type: numeric ──────────────────────────────────────────────────────
#>   skim_variable n_missing complete_rate mean   sd p0  p25 p50  p75 p100 hist 
#> 1 a                     0             1  5.5 3.03  1 3.25 5.5 7.75   10 ▇▇▇▇▇
#> 
#> $dim
#> [1] 10  2
#> 
#> $type
#> [1] "list"
#>