Create a properly formatted data report for datasets which contain 'mdate' class objects, alongside other object classes.

mreport(data)

Arguments

data

A {tibble} or a {data.frame}.

Value

A data report of class 'mreport'.

Details

'mreport' displays the variable's name, the variable type, the number of observations per variable, the number of missing observations for variable, and the percentage of missing observations in variable.

Examples

mreport(battles)
#> ----------------------------------------------------------------------------
#> |  Column Name  |  Data Type  |  Observations  |  Missing  |  Missing (%)  |
#> ----------------------------------------------------------------------------
#> |    Battle     |  character  |              20|     0     |       0       |
#> |     Date      |    mdate    |              20|     0     |       0       |
#> |    Parties    |  character  |              20|     0     |       0       |
#> |   US_party    |   numeric   |              20|     0     |       0       |
#> |   N_actors    |   numeric   |              20|     0     |       0       |
#> ----------------------------------------------------------------------------
#>