R can be used to parallel programming, but as far as I know this is only compatible with Linux OS and not Windows. To do so, we will be using Ubuntu OS and will be implementing a function called mclapply, which is a spiffed up version of lapply, compatible with computations across more than one core.
First, lets go over some ways that we can conduct repetition in R.
dim(iris)
## [1] 150 5