Skip to contents

read and write

Some functions to help reading and writing files.

read_chr()
Read character columns with clean names
read_url()
Read the html text of an url
read_xlsx()
Read a sheet from a xlsx file into a tibbles
resp_body_yyjson()
Extract body from httr2 response using yyjsonr
write_xlsx()
Write a list of tibbles to a xlsx file

tidymodels

Some functions to help using tidymodels.

calc_split_prop()
Calculate split proportion
calc_split_size()
Calculate split size
fit_results()
Fit a workflow with specific parameters
last_fit_metrics()
Do the last fit and get the metrics
normalize_vec()
Center and scale double vectors
prep_juice()
Prep, juice and glimpse a recipe or workflow
prep_juice_ncol()
Prep, juice and get cols from a recipe or workflow
score_recipe()
Tune a recipe using glmnet and lightgbm and stacks
update_step()
Update recipe step values by id
workflow_boost_tree()
Create an xgboost tunable workflow for regression and classification
workflow_elasticnet()
Create a tuneable glmnet worfklow for regression and classification

graphing

Some functions to help ploting and customize look and feel.

theme_roboto()
Sets a minimal theme using the Roboto font family
theme_set_roboto_darkblue()
Sets a dark blue colored dark minimal theme using the Roboto font family

packages

Some functions to help managing packages and package versions.

check_installed_github()
Check if the last github version is installed
package_github_name()
Github name of the package
package_github_version()
Github version of the package

Data wrangling

Some functions to help data wrangling in R.

add_row_hash()
Add hash for each row
count_duplicated_rows()
Count the number of duplicated rows
count_sorted()
Count a variable or variables sorted
glimpses()
Glimpse multiple datasets
plot_bars()
Plot bars for non double columns
plot_histograms()
Plot histograms for double columns
plot_missing()
Plot missing values
plot_variable()
Plot a variable
sanitize_title_with_dashes()
Sanitize title with dashes
slugify()
Slugify character vectors
sum_missing()
Sum the missing values from a data.frame
summarize_n_distinct()
Select constant columns from a data.frame

processing

Some functions to help processing in R.

name_unnamed_chunks()
Name unnamed chunks in .Rmd or .qmd files
notify_finished()
Make a sound and send an email when a process finished

text

Some functions to help with text in R .

chars()
Create a vector of characters from a string
fuzzy_token_set_ratio()
Fuzzy Token Set Ratio
get_sentiments_by_language()
Get a sentiments by language
prepare_text()
Prepare Text for Analysis

pipe

Some functions to help piping.

aside()
Multiple aside functions with base R pipe
tee()
Tee pipe that return the original value instead of the result

parallel

Some functions to help with parallel computing in R .

detect_cores()
Detect cores that could be used
request_max_safe_cores_from_rss()
Request the maximum safe number of cores

types

Some functions to help with types in R .

as.bitstring()
Data type utilities

data

Datasets and objects included in my personal R package.

spain_provinces
spain_provinces
spain_ccaas
spain_ccaas