Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Code that was written for S in the 80s still runs on R today.


If it has any loops, almost as slowly and uselessly as it did then :)


Not really. All packages are bytecode compiled, so unless you doing something stupid, for loops are much faster than they used to be in R.


good to know...was doing something in 2013 that couldn't be vectorized (lots of portfolio simulation calcs where each element in dataframe depended on previous elements, ie portfolio value + market return - spending based on moving average of portfolio value) and it was pretty horrible, trying to use Rcpp and whatnot to speed it up!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: