Description Usage Arguments Value Examples
Shows the extent of NAs in a data frame
1 |
df |
a data frame whose missingness is a mystery |
missing_strings |
an array of characters indicating which strings correspond to missing values |
a data frame containing count and proportion missing for each variable in the_only_argument_is_a_data_frame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | > showNAs(ChickWeight)
var NA_count NA_mean
1 weight 0 0
2 Time 0 0
3 Chick 0 0
4 Diet 0 0
> ChickWeightNA <- ChickWeight
> ChickWeightNA$weight[1:300] <- NA
> ChickWeightNA$Time <- NA
> showNAs(ChickWeightNA)
var NA_count NA_mean
1 weight 300 0.5190311
2 Time 578 1.0000000
3 Chick 0 0.0000000
4 Diet 0 0.0000000
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.