count_NAs: Count share of missing values for all variables by group

Description Usage Arguments Value See Also Examples

Description

Count share of missing values for all variables by group

Usage

1
count_NAs(df, groupingvar = "Country_Transco")

Arguments

df

Dataframe

groupingvar

Character vector indicating variable names used for grouping (e.g. country level variable)

Value

A dataframe where, for each group, the proportion of missing values is returned for each column. With a n x p dataframe, count_NAs returns an np x 3 dataframe

See Also

check.emptycolumn

Examples

1
2
3
4
5
## Not run: 
# ASSUMING YOU HAVE A df_ILO DATAFRAME IN ENVIRONMENT
count_NAs(df)
count_NAs(df, "year")
## End(Not run)

linogaliana/OpenCancer documentation built on May 30, 2019, 3:43 p.m.