This function add the values in x_axis that is not in x$col to x$col with their count equal to zero.

add_miss_summary_stat(x, col, x_axis, na_fill = "NA")

Arguments

x

A tibble data.

col

The column we want to add additional row to.

x_axis

The value that the x$col may take.

na_fill

The value to fill NA value. (default "NA")

Value

A tibble data after adding the missing columns.