r/rprogramming • • Sep 23 '21

R vs MATLAB

https://techbiason.com/r-vs-matlab/

[removed] — view removed post

0 Upvotes

5 comments sorted by

1

u/Lord_of_Entropy Sep 23 '21

Thanks for posting this! I already use Martlab and am trying to learn R, so this could not be more timely.

1

u/jdnewmil Sep 23 '21

This website has very low quality content. I would absolutely not recommend it.

1

u/Lord_of_Entropy Sep 23 '21

Thanks for the heads up. I’ll remember that when I go through this. Can you recommend a better resource?

1

u/jdnewmil Sep 23 '21

I found that approaching the transition as mentally translating Matlab into R mislead me... while R has a lot of corresponding concepts, it approaches things differently. Try to read any R explanation on its own merits because even where you think you see similarities with Matlab you are likely to miss key R concepts if you jump to conclusions about what you are reading.

In R, type

RShowDoc( "R-intro" )

This document is kind of dry... but most of the key concepts you will need will be in here for reference... and it can't hurt to shake up your Matlab preconceptions by reading it carefully. But don't expect it to coddle you... you might want HOPR for a less abrupt intro.

If you really want to accelerate your R productivity, read R4DS. It leans heavily on the tidyverse contributed packages to simplify how things get done, so the linkage with R-intro (base R) may seem obscure, but it is all part of the same language.

If you want to understand how tidyverse and base R fit together, read Advanced R... but I wouldn't recommend trying it in one sitting.