Remove monotonous columns from a data tibble
Arguments
- data_df
A tibble returned by
get_data().- remove_monotonous_data
Remove columns where all values are identical.
Examples
# \donttest{
scb <- px_api("scb", lang = "en")
if (px_available(scb)) {
d <- get_data(scb, "TAB638", Region = "0180", Tid = px_top(3))
d |> data_minimize()
}# }
#> Warning: PX-Web API returned HTTP 400: {"type":"Parameter error","title":"Missing selection for mandantory variable","status":400}
#> NULL