Skip to contents

Pass in a data frame and the contents will be displayed.

Usage

ru_contents(dsetin)

Arguments

dsetin

Incoming data frame to have proc contents generated.

Value

'NULL' because the proc contents output will be displayed.

Author

Yongwei Wang, yongwei.x.wang@viivhealthcare.com
Chris Rook, cr883296@gmail.com

Examples

library(repfun)
repfun::ru_contents(mtcars)
#> $s_data_info
#>  [1] "Data Set Name       mtcars                                            \n"
#>  [2] "Member Type         Data                                              \n"
#>  [3] "Created             NA                                                \n"
#>  [4] "Last Modified       NA                                                \n"
#>  [5] "Label                                                                 \n"
#>  [6] "Observations        32                                                \n"
#>  [7] "Variables           11                                                \n"
#>  [8] "Filename            mtcars                                            \n"
#>  [9] "File Size           0 MB                                              \n"
#> [10] "File Size (bytes)   7208                                              \n"
#> 
#> $fmt_str
#> [1] "\n\n     Variable  Type       Len Class       Format      Label                                             \n"
#> 
#> $s_var_info_1
#>  [1] "  9 am        double       9                                                                           \n"
#>  [2] " 11 carb      double       9                                                                           \n"
#>  [3] "  2 cyl       double       9                                                                           \n"
#>  [4] "  3 disp      double       9                                                                           \n"
#>  [5] "  5 drat      double       9                                                                           \n"
#>  [6] " 10 gear      double       9                                                                           \n"
#>  [7] "  4 hp        double       9                                                                           \n"
#>  [8] "  1 mpg       double       9                                                                           \n"
#>  [9] "  7 qsec      double       9                                                                           \n"
#> [10] "  8 vs        double       9                                                                           \n"
#> [11] "  6 wt        double       9                                                                           \n"
#>