Tidys a data frame to return unified case names, autoparses logical columns and auto formats counts, amounts and values.

tidy_column_formats(data, drop_na_columns = TRUE)

Arguments

data

tibble

drop_na_columns

TRUE drops NA columns

Value

tibble

See also

Other utility function: drop_na_columns(), get_class_df(), tidy_column_relations()

Examples

library(dplyr)
tibble(nameFund = "Blackstone Real Estate Fund IX", isNewFund = "N/A",
countAssets = 12000, amountAUM = 65000000, isRealEstateFund = 1) %>% tidy_column_formats(drop_na_columns = FALSE)