Packages
#install.packages("doParallel")
library("doParallel")
## Loading required package: foreach
## Loading required package: iterators
## Loading required package: parallel
Check how long a loop takes
start <- proc.time()
for (i in 1:10){
sqrt(i)
}
base_loop=(proc.