October 2017
Beginner to intermediate
236 pages
7h 38m
English
One of the well-known drawbacks in R is use of the for loop. This is relatively very slow compared to other software. However, if you have avoided the use of loop while doing the same task using the matrix operation, then it is a lot faster. In this recipe, you will compare a vectorized version with a for loop to do the same task.