get_miss_perc | R Documentation |
get the percent of observations that are missing in a column of a tibble or dataframe. Can be mapped or future_mapped over multiple columns in a dataframe
get_miss_perc(data, missing_value, ...)
data |
is the dataframe or tibble to which the column of interest belongs |
missing_value |
is the value to be counted as "missing", i.e "NA" or "", or c("NA", NA, "") |
... |
additional arguments passed |
a character string of the missing percentage of miss_col
## Not run: require(tibble) col1 <- seq(1, 10, 1) col2 <- c("NA", 5, 7, NA, 41, "NA", 6, 8, "NA", NA) my_tibble <- tibble(col1 = col1, col2 = col2) get_miss_perc(my_tibble$col1, missing_value = "NA") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.