A bag of useful R tricks
Contributions (pull requests and issues) are welcome.
library("devtools")
install_github("pachevalier/tricky")
set_standard_names()
: standardize names of tibbledetect_na()
: returns a tibble with number and share of NA for each variablecount_na()
: returns a tibble with number of NA and non NA for a variablefind_keys()
: detect potential keys in a dataset
format_num()
: format numbers according to a locale (fr or en)parse_French_number()
: extract numbers from string (wrapper forreadr::parse_number()
)percent_formatting()
: format percentages
str_standardize()
: returns a vector of standardized names (remove accents, blank spaces, special characters, etc)