R vs. Python Speed Comparison - Running for Loops! #rstats #RStudio#python#pythoncode#codeefficiency

preview_player
Показать описание
Which programming language is quicker for running for loops?
Рекомендации по теме
Комментарии
Автор

That's by far no fair comparision, since R uses power vectorization

creepomusik
Автор

As the other comments says, R is much faster and simpler because it don't really need to relly on loop.
You can redo your benchmark by doing:
i <-
x <- i * i
And it will be much faster. All the best for your content. I suscribed to your channel

fabricehategekimana
Автор

If you vectorize or if you use Rcpp, R can be much much faster.

draziraphale