Need help with lares?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

161 Stars 38 Forks 1.3K Commits 2 Opened issues


R Library for Analytics and Machine Learning

Services available


Need anything else?

Contributors list

# 137,331
958 commits
# 564,673
1 commit
# 96,905
1 commit


R Package for Analytics and Machine Learning

R-CMD-check documentation CodeFactor saythanks

R library built to automate, improve, and speed everyday Analysis and Machine Learning tasks. With a wide variety of family functions like Machine Learning, data cleaning and procesing, EDA, Investment, NLP, Queries, Scrappers, API interactions,

helps the analyst or data scientist get quick, reproducible, robust results, without the need of repetitive coding nor extensive programming skills. Feel free to install, use, and/or comment on any of the code and functionalities. And if you are also colourblind, be sure to check the the colour palettes!

Don't hesitate to contact me, and please when you do, let me know where did you first hear from the library and which family of functions you are most interested in.


# If you don't have remotes yet, run: install.packages('remotes')

Full installation with recommended dependencies (takes more time)

remotes::install_github("laresbernardo/lares", dependencies = TRUE)

Windows users: you MAY have to install

before running the above code. Download it here.

CRAN NOTE: I do NOT have plans to submit the library to CRAN, eventhough I'm a huge fan and it passes all its quality tests. I see

more of an everyday useful and shareble package rather than a "specialized for a specific task" library. It has too many various kinds of functions, from NLP to querying APIs, plotting Machine Learning results to market stocks and portfolio reports. I gladly share my code with ouR community and encourage you to use/comment/share it, but I do think that CRAN is not aiming for this kind of libraries in their repertoire.

See the library in action!

AutoML Simplified Map from

AutoML Map (lares)

Insights While Understanding

To get insights and value out of your dataset, first you need to understand its structure, types of data, empty values, interactions between variables...

are here to give you just that! They show a wide persepective of your dataset content, correlations, and frequencies. Additionally, with the
function to detect all missing values and
to break down you data frame's structure, you will be ready to squeeze valuable insights out of your data. Cross-Correlations and Frequencies (lares)

Kings of Data Mining

My favourite and most used functions are

, and
. In this RMarkdown you can see them in action. Basically, they group and count values within variables, show distributions of one variable vs another one (numerical or categorical), and calculate/plot correlations of one variables vs all others, no matter what type of data you insert.

If there is space for one more, I would add

(One Hot Smart Encoding), which has made my life much easier and my work much valuable. It converts a whole data frame into numerical values by making dummy variables (categoricals turned into new columns with 1s and 0s, ordered by frequencies and grouping less frequent into a single column) and dates into new features (such as month, year, week of the year, minutes if time is present, holidays given a country, currency exchange rates, etc).

What else is there?

You can check all active functions and documentations here or type

in RStudio and you will get a pop-up with all the functions that are currently available within the package. You might also want to check the whole documentation by running
help(package = "lares")
in your RStudio or in the Online Official Documentation. Remember to check the families and similar functions on the See Also sections as well.

Getting further help

If you need help with any of the functions when using RStudio, use the

function (i.e.
) and the Help tab will display a short explanation on each function and its parameters. You might also be interested in the Online Official Documentation to check all functions and parameters.

If you encounter a bug, please share with me a reproducible example on Github issues and I'll take care of it. For inquiries, and other matters, you can LinkedIn me anytime!

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.