Package: lares 5.4.0.9000

lares: Lean Analytics and Robust Exploration Sidekick

Auxiliary package for better/faster analytics, visualization, data mining, and machine learning tasks. With a wide variety of family functions, like Machine Learning, Data Wrangling, Marketing Mix Modeling (Robyn), Exploratory, API, and Scrapper, it helps the analyst or data scientist to get quick and robust results, without the need of repetitive coding or advanced R programming skills.

Authors:Bernardo Lares [aut, cre]

lares_5.4.0.9000.tar.gz
lares_5.4.0.9000.zip(r-4.7)lares_5.4.0.9000.zip(r-4.6)lares_5.4.0.9000.zip(r-4.5)
lares_5.4.0.9000.tgz(r-4.6-any)lares_5.4.0.9000.tgz(r-4.5-any)
lares_5.4.0.9000.tar.gz(r-4.7-any)lares_5.4.0.9000.tar.gz(r-4.6-any)
lares_5.4.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION
card.svg |card.png
lares/json (API)

# Install 'lares' in R:
install.packages('lares', repos = c('https://laresbernardo.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/laresbernardo/lares/issues

Pkgdown/docs site:https://laresbernardo.github.io

Datasets:
  • dfr - Results for AutoML Predictions
  • dft - Titanic Dataset

On CRAN:

Conda:

analyticsapiautomationautomldata-sciencedescriptive-statisticsh2omachine-learningmarketingmmmpredictive-modelingpuzzlerlanguagerobynvisualization

11.69 score 239 stars 2 packages 319 scripts 3.3k downloads 2 mentions 268 exports 49 dependencies

Last updated from:7b2dd9a9e4. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK285
source / vignettesOK415
linux-release-x86_64OK256
macos-release-arm64OK179
macos-oldrel-arm64OK187
windows-develOK182
windows-releaseOK199
windows-oldrelOK209
wasm-releaseOK175

Exports:%>%are_binaryare_constantare_idautolinebalance_databind_filesbring_apicache_clearcache_existscache_pipecache_readcache_writecal_splitcateg_reducercheck_attrcheck_optschr2datechr2logicalchr2numci_lowerci_upperci_varcleanNamescleanTextclusterKmeansclusterOptimalKclusterVisualKconf_matcorrcorr_crosscorr_varcran_logscrosstabdaily_portfoliodaily_stocksdalex_localdalex_residualsdalex_variabledate_cutsdate_featsdb_downloaddb_uploaddf_strdist2ddistrdont_sleepdont_sleep_timeencrypt_fileerrorsetf_sectorexport_plotexport_resultsfb_accountsfb_adsfb_creativesfb_insightsfb_processfb_report_checkfb_rffb_tokenfile_namefile_typefiles_functionsfilesGDfont_existsforecast_arimaformatColouredformatHTMLformatNumfreqsfreqs_dffreqs_listfreqs_plotgain_liftgemini_askgemini_imageget_credentialsget_credsget_currencyget_tweetsgg_colour_customsgg_fill_customsgg_text_customsgg_valsgluedgpt_askgpt_classifygpt_convertgpt_extractgpt_formatgpt_historygpt_promptergpt_tablegpt_taggpt_translategrepl_lettersgrepmgtrends_relatedgtrends_timeh2o_automlh2o_explainerh2o_predict_APIh2o_predict_binaryh2o_predict_modelh2o_predict_MOJOh2o_resultsh2o_selectmodelh2o_shaphaveInternethex_to_rawholidaysimage_metadataimportxlsximputeinstall_recommendedip_datais_evenis_ipis_oddis_urliter_seedsjson2vectorlares_logolares_pallasso_varsleftlist_catslistfilesloglossBinarymaemail_sendmapemarkdown2dfmaze_gridsearchmaze_solvemissingnessmodel_metricsmodel_preprocessmove_filesmp3_getmp3_trimmp3_update_tagsmplot_confmplot_cutsmplot_cuts_errormplot_densitymplot_fullmplot_gainmplot_importancemplot_linealmplot_metricsmplot_responsemplot_rocmplot_splitsmplot_topcatsmsemsplitmyipngramsnoPlotnormalizenum_abbrnumericalonlyohe_commasohseoutlier_tukeyoutlier_turkeyoutlier_zscoreoutlier_zscore_plotplot_catsplot_chordplot_dfplot_numsplot_paletteplot_surveyplot_timelineprophesizequantsqueryDBqueryGAquietraw_to_hexread_encryptedread.filereadGSreduce_pcareduce_tsneremove_stopwordsremovenacolsremovenarowsreplaceallreplacefactorrightrmserobyn_hypsbuilderrobyn_marginalrobyn_modelselectorrobyn_performancerobyn_xchannelsrobyn_xmodelsROCrsqrsqartistry_spherescale_x_abbrscale_x_commascale_x_dollarscale_x_formatNumscale_x_percentscale_y_abbrscale_y_commascale_y_dollarscale_y_formatNumscale_y_percentscrabble_dictionaryscrabble_pointsscrabble_scorescrabble_wordssentimentBreakdownseq_surnamesshap_varslackSendsplot_changesplot_divssplot_etfsplot_growthsplot_roisplot_summarysplot_typesspread_liststatusbarstocks_filestocks_histstocks_objstocks_quotestocks_reportsudoku_solvertarget_settextCloudtextFeatstextTokenizertheme_larestictoctoon_reductiontopics_raketree_vartry_requireupdateLaresv2tvector2textwarnifnotweighted_valuewhat_sizewinsorizewordle_checkwordle_dictionarywordle_simulationwrite_encryptedwriteGSx2yx2y_metricx2y_predsyear_monthyear_quarteryear_weekzerovar

Dependencies:askpassclicpp11curldplyrfarvergenericsggplot2gluegtablehttrisobandjsonlitelabelinglifecyclelubridatemagrittrmimeopensslopenxlsxpatchworkpillarpkgconfigpROCpurrrR6RColorBrewerRcpprlangrpartrpart.plotrvestS7scalesselectrstringistringrsystibbletidyrtidyselecttimechangeutf8vctrsviridisLitewithrxml2yamlzip

API Integrations
Introduction | Credential Management | Setup Credentials Securely | ChatGPT Integration | Basic Usage | Structured Prompts | Specialized Functions | Classification | Data Extraction | Translation | Formatting | Tagging | View Conversation History | Advanced Configuration | Google Gemini Integration | Image Analysis | Financial Data: Stocks | Get Stock Historical Data | Multiple Stocks | Stock Quotes | Portfolio Analysis | Stock Visualizations | Google Sheets Integration | Read from Google Sheets | Write to Google Sheets | Database Queries | PostgreSQL | Google Trends | Search Trends Over Time | Related Queries | Best Practices | 1. Secure Your Credentials | 2. Handle API Errors | 3. Rate Limiting | 4. Cache Results | 5. Monitor Costs | Environment Variables | Troubleshooting | API Key Issues | Network Issues | Rate Limit Errors | Complete Example: Data Analysis with AI | Further Reading | API Documentation | Blog Posts & Tutorials | Next Steps

Last update: 2026-04-23
Started: 2025-11-24

Data Wrangling & Visualization
Install and Load | Quick Start with Built-in Data | Frequency Analysis | Basic Frequencies | Multi-variable Frequencies | Visual Frequencies | Dataframe-wide Frequencies | Correlation Analysis | Correlation Matrix | Correlate One Variable with All Others | Cross-Correlations | Data Transformation | Categorical Reduction | Normalization | One-Hot Encoding | Date Manipulation | Visualization with theme_lares | Custom ggplot2 Theme | Distribution Plots | Number Formatting | Custom Scales | Text and Vector Utilities | Vector to Text | Putting It All Together | Further Reading | Package Resources | Blog Posts & Tutorials | Next Steps

Last update: 2026-04-23
Started: 2025-11-24

Machine Learning
Introduction | Setup | Pipeline | Quick Start: Binary Classification | Understanding the Output | Model Performance | Metrics | Confusion Matrix | ROC Curve | Gain and Lift Charts | Variable Importance | Model Interpretation with SHAP | Advanced: Customizing AutoML | Preprocessing Options | Multi-Class Classification | Regression Example | Using Pre-Split Data | Making Predictions | On New Data | Binary Model Predictions | Model Comparison | Full Visualization Suite | Metrics Comparison | Saving and Loading Models | Export Results | Load Saved Model | Best Practices | 1. Start Simple | 2. Iterate and Refine | 3. Validate Thoroughly | Score Distribution | 4. Document Your Process | Troubleshooting | h2o Initialization Issues | Clean h2o Environment | Check h2o Flow UI | Further Reading | Package & ML Resources | Next Steps

Last update: 2026-04-23
Started: 2025-11-24

Robyn Enhancers
Introduction | Hyperparameter Builder | Model Selection | Model Performance | Marginal Performance (Experimental) | Cross-Model Budget Allocation (Experimental) | Conclusion | Additional Reading

Last update: 2026-04-23
Started: 2025-11-24

Games & Puzzles
Introduction | Wordle | Basic Wordle Validation | Get Wordle Hints | Wordle Simulation | Wordle Dictionary | Scrabble | Find Highest-Scoring Words | With Board Constraints | Calculate Word Scores | Multi-Language Support | Sudoku | Simple Sudoku | Complex Sudoku | Maze Solver | Basic Maze | Micromouse Competition Maze | Advanced Options | Combining Games & Data Science | Further Reading | Package Resources | Game References | Next Steps

Last update: 2025-11-26
Started: 2025-11-24

Readme and manuals

Help Manual

Help pageTopics
New Line Feed for Long Strings (Wrapper)autoline
Balance Binary Data by Resampling: Under-Over Samplingbalance_data
Bind Files into Dataframebind_files
Get API (JSON) and Transform into data.framebring_api
Cache Save and Load (Write and Read)cache_clear cache_exists cache_pipe cache_read cache_write
Split ICS Filecal_split
Reduce categorical valuescateg_reducer
Validate inputs (attributions, options, ...)are_binary are_constant are_id check_attr check_opts is_even is_ip is_odd is_url
Check character values for date/numeric/logical and change datatypechr2date chr2logical chr2num
Lower/Upper Confidence Intervalsci_lower ci_upper
Confidence Intervals on Dataframeci_var
Clean text strings automaticallycleanNames cleanText
Automated K-Means Clustering + PCA/t-SNEclusterKmeans
Visualize K-Means Clusters for Several K MethodsclusterOptimalK
Visualize K-Means Clusters for Several KclusterVisualK
Confussion Matrixconf_mat
Correlation tablecorr
Ranked cross-correlation across all variablescorr_cross
Correlation between variable and dataframecorr_var plot.corr_var
Download and plot daily downloads of CRAN packagescran_logs
Weighted Cross Tabulationcrosstab
DALEX Localdalex_local
DALEX Residualsdalex_residuals
DALEX Partial Dependency Plots (PDP)dalex_variable
Convert Date into Year + Cutdate_cuts
One Hot Encoding for Date/Time Variables (Dummy Variables)date_feats
Download/Import Dropbox File by File's Namedb_download
Upload Local Files to Dropboxdb_upload
Dataset columns and rows structuredf_str
Results for AutoML Predictionsdfr
Titanic Datasetdft
Distance from specific point to linedist2d
Compare Variables with their Distributionsdistr
Prevent Computer from Sleeping by Simulating Mouse Activitydont_sleep dont_sleep_time
File Encryption and Decryption (AES-256-CBC)encrypt_file hex_to_raw raw_to_hex read_encrypted write_encrypted
Calculate Continuous Values Errorserrors mae mape mse rmse rsq rsqa
ETF's Sectors Breakdownetf_sector
Export ggplot2, gridExtra, or any plot object into rendered fileexport_plot
Export h2o_automl's Resultsexport_results
Facebook Ad Accountsfb_accounts
Facebook Ads APIfb_ads
Facebook Creatives APIfb_creatives
Facebook Insights APIfb_insights
Paginate and Process Facebook's API Resultsfb_process
Facebook API Report Status Checkfb_report_check
Facebook Reach and Frequency APIfb_rf
Facebook's Long-Life User API Tokenfb_token
Extract file raw name and type from file namesfile_name file_type
List all functions used in R script files by packagefiles_functions
Google Drive Files (API v4)filesGD
Check if Font is Installedfont_exists
ARIMA Forecastforecast_arima
Print Coloured MessagesformatColoured
Format a string text as markdown/HTMLformatHTML formatNum
Frequencies Calculations and Plotfreqs
Plot for All Frequencies on Dataframefreqs_df
Frequencies on Lists and UpSet Plotfreqs_list
Combined Frequencies Plot for Categorical Featuresfreqs_plot
Cumulative Gain, Lift and Responsegain_lift
Gemini API Interaction with Rgemini_ask gemini_image
Load Credentials from a YML Fileget_credentials get_creds
Download Historical Currency Exchange Rateget_currency
Get Tweetsget_tweets
Custom fill, colour and text colours for ggplot2gg_colour_customs gg_fill_customs gg_text_customs gg_vals
Interpolate a string [glue wrapper]glued
ChatGPT API Interaction with Rgpt_ask gpt_classify gpt_convert gpt_extract gpt_format gpt_history gpt_table gpt_tag gpt_translate
Structured Prompt Builder for LLM (ChatGPT)gpt_prompter
Pattern Matching for Letters considering Blanksgrepl_letters
Pattern Matching for Any or All Multiple Matchesgrepm
Google Trends: Related and Time Plotsgtrends_related gtrends_time trendsRelated trendsTime
Automated H2O's AutoMLh2o_automl plot.h2o_automl print.h2o_automl
DALEX Explainer for H2Odalex_explainer h2o_explainer
Calculate predictions of h2o Modelsh2o_predict_API h2o_predict_binary h2o_predict_model h2o_predict_MOJO
Automated H2O's AutoML Resultsh2o_results
Select Model from h2o_automl's Leaderboardh2o_selectmodel
SHAP values for H2O Modelsh2o_shap plot.h2o_shap
Internet Connection CheckhaveInternet
Holidays in your Countryholidays
Get Meta Data from Image Filesimage_metadata
Import Excel File with All Its Tabsimportxlsx
Impute Missing Values (using MICE)impute
Install/Update Additional Recommended Librariesinstall_recommended
Scrap data based on IP addressip_data
Iterate Seeds on AutoMLiter_seeds
Convert Python JSON string to R vector (data.frame with 1 row)json2vector
Lean Analytics and Robust Exploration Sidekicklares-package lares
Print lares R library Logolares_logo
Personal Colours Palettelares_pal
Pipe operator%>% lares-exports
Most Relevant Features Using Lasso Regressionlasso_vars
Left or Right N characters of a stringleft right
List categorical values for data.framelist_cats
List files in a directorylistfiles
Logarithmic Loss Function for Binary ModelsloglossBinary
Send Emails with Attachments (POST)mail_send
Convert markdown string tables to data.framemarkdown2df
Maze Solver, inspired by Micromouse competitionsmaze_gridsearch maze_solve print.maze_solve
Calculate and Visualize Missingnessmissingness
Model Metrics and Performancemodel_metrics
Automate Data Preprocess for Modelingmodel_preprocess
Move files from A to Bmove_files
Download MP3 from URLmp3_get
Trim MP3 Audio Filemp3_trim
Update MP3 Metadata Tagsmp3_update_tags
Confussion Matrix Plotmplot_conf
Cuts by quantiles for score plotmplot_cuts
Cuts by quantiles on absolute and percentual errors plotmplot_cuts_error
Density plot for discrete and continuous valuesmplot_density
MPLOTS Score Full Report Plotsmplot_full
Cumulative Gain Plotmplot_gain
Variables Importances Plotmplot_importance
Linear Regression Results Plotmplot_lineal
Model Metrics and Performance Plotsmplot_metrics
Cumulative Response Plotmplot_response
ROC Curve Plotmplot_roc
Split and compare quantiles plotmplot_splits
Top Hit Ratios for Multi-Classification Modelsmplot_topcats
Split a dataframe for training and testing setsmsplit
What's my IP?myip
Build N-grams and keep most frequentngrams
Plot Result with Nothing to PlotnoPlot
Normalize Vectornormalize
Abbreviate or dis-abbreviate numerical valuesnum_abbr
One Hot Encoding for a Vector with Comma Separated Valuesohe_commas
One Hot Smart Encoding (Dummy Variables)ohse
Outliers: Tukey’s fencesoutlier_tukey outlier_turkey
Outliers: Z-score methodoutlier_zscore
Outliers: Z-score method plotoutlier_zscore_plot
Plot All Categorical Features (Frequencies)plot_cats
Chords Plotplot_chord
Plot Summary of Numerical and Categorical Featuresplot_df
Plot All Numerical Features (Boxplots)plot_nums
Plot Palette Coloursplot_palette
Visualize Survey Resultsplot_survey
Plot timeline as Gantt Plotplot_timeline
Facebook's Prophet Forecastprophesize
Calculate cuts by quantilesquants
PostgreSQL Queries on Database (Read)queryDB
Queries on Google AnalyticsqueryGA
Quiet prints and verbose noisequiet
Read Files Quickly (Auto-detected)read.file
Google Sheets Reading and Writing (API v4)readGS readGS4 writeGS writeGS4
Reduce Dimensionality with PCAreduce_pca
Reduce Dimensionality with t-SNEreduce_tsne
Remove stop-words and patterns from character vectorremove_stopwords
Remove/Drop Columns in which ALL or SOME values are NAsnumericalonly removenacols removenarows
Replace Values Withreplaceall
Replace Factor Valuesreplacefactor
Robyn: Generate default hyperparametersrobyn_hypsbuilder
Robyn: Marginal Performance (mROAS & mCPA) [Experimental]robyn_marginal
Robyn: Model Selection by Weighted Criteria Scoresplot.robyn_modelselector robyn_modelselector
Robyn: Dynamic Performance and Contribution Reportrobyn_performance
Cross-MMM Budget Optimization across Modelsprint.robyn_crossmmm robyn_xchannels robyn_xmodels
AUC and ROC Curves DataROC
Generative Art: Sphere XmodYrtistry_sphere
Axis scales formatscale_x_abbr scale_x_comma scale_x_dollar scale_x_formatNum scale_x_percent scale_y_abbr scale_y_comma scale_y_dollar scale_y_formatNum scale_y_percent
Scrabble: Dictionariesscrabble_dictionary scrabble_points scrabble_score scrabble_words
Sentiment Breakdown on TextsentimentBreakdown
Surnames Order Sequenceseq_surnames
SHAP-based dependence plots for categorical/numerical features (PDP)shap_var
Send Slack Message (Webhook)slackSend
Investing Portfolio Reporting Plotssplot_change splot_divs splot_etf splot_growth splot_roi splot_summary splot_types
Spread list column into new columnsspread_list
Progressive Status Bar (Loading)statusbar
Build a Personal Investing Portfolio Reportdaily_portfolio daily_stocks stocks_file stocks_obj stocks_report
Download Stocks Historical and Current Valuesplot.stocks_hist stocks_hist stocks_quote
Solve Sudoku Puzzlessudoku_solver
Set Target Value in Target Variabletarget_set
Wordcloud PlottextCloud
Create features out of texttextFeats
Tokenize Vectors into WordstextTokenizer
Theme for ggplot2 (lares)theme_lares
Stopwatch to measure timings in Rtic toc
Calculate Character Reduction from R Object to TOON Formattoon_reduction
Keyword/Topic identification using RAKEtopics_rake
Recursive Partitioning and Regression Treestree_var
Check if Specific Package is Installedtry_require
Update the library (dev or CRAN version)updateLares
Convert a vector into a comma separated textv2t vector2text
Test the Truth of R Expressions and Warnwarnifnot
Calculate weighted stock values using FIFO/LIFOweighted_value
Calculate the size of any R object or directorywhat_size
Outliers: Winsorizewinsorize
Wordle Game Validationprint.wordle_check print.wordle_simulation wordle_check wordle_dictionary wordle_simulation
Ranked Predictive Power of Cross-Features (x2y)plot.x2y plot.x2y_preds x2y x2y_metric x2y_preds
Convert Date into Year-Month, Year-Quarter or Year-Week Formatyear_month year_quarter year_week
Zero Variance Columnszerovar