View source: R/enforce_custom_na.R
| enforce_custom_na | R Documentation |
NA value for a dataset.Redefine NA value for a dataset.
enforce_custom_na(data, col_schema)
data |
A |
col_schema |
A col_schema from a |
A data.frame
# create custom NA filter
example_na_custom <- example_na |>
tidyr::replace_na(
list("wages" = -999)
)
example_na_expanded_custom <- enforce_custom_na(
data = example_na_custom,
col_schema = list(
"wages" = list(
dtype = "dbl",
na_value = -999
)
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.