Skip to contents

Description of a data frame

Usage

# S3 method for class 'contents'
print(x, digits = 4, ...)

Arguments

x

an object of class contents.

digits

number of significant digits to use for percentage.

...

additional arguments passed to the print function.

Examples

library(rPackageTutorial)
df_info <- contents(happiness)
print(df_info)
#> Data frame: happiness 
#> 498 observations and 12 variables
#> size: 0.1 Mb 
#>  pos    varname    type n_unique n_miss pct_miss
#>    1       Time  factor        3      0  0.00000
#>    2     Region  factor       10      0  0.00000
#>    3    Country  factor      166      0  0.00000
#>    4  Happiness numeric      450     28  0.05622
#>    5       Rank integer      159     28  0.05622
#>    6        GDP numeric      468     28  0.05622
#>    7     Family numeric      469     28  0.05622
#>    8     Health numeric      467     28  0.05622
#>    9    Freedom numeric      463     28  0.05622
#>   10 Corruption numeric      467     28  0.05622
#>   11 Generosity numeric      469     28  0.05622
#>   12   Dystopia numeric      471     28  0.05622