Does R have a unified machine learning library similar to Python's scikit-learn?

So, a lot of that is in base R. For example:

  1. this will work in any R console

  2. x ← 1:1000

  3. y ← 2.5 * x + rnorm(1000)

  4. lm(y ~ x)

Which is one of the nice things with R - you often don’t need external dependencies (i.e. numpy, pandas, scikit-learn, etc. - these python modules are used to make python emulate base R). Now, if you do need specialised things, there are things like caret that provide a unified interface to various other ML libraries.