Description Usage Arguments Details Examples
View source: R/general_utilities.R
columns with all or some NA
values may not useful
1 | drop_na_col(df, na_limit = 1)
|
df |
is a data frame |
na_limit |
what percent |
details here
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
df_na <- tibble(
none_na = sample(letters, 100, replace = TRUE),
some_na = sample(c(0L:2L, NA), 100, replace = TRUE),
half_na = sample(c(TRUE, NA, FALSE, NA), 100, replace = TRUE),
most_na = sample(c(TRUE, FALSE, NA, NA, NA, NA), 100, TRUE),
all_na = rep(NA, 100))
drop_na_col(df_na)
drop_na_col(df_na, na_limit = .25)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.