October 7, 2015

Mapply

Mapply gives you multivariate data result

mapply(rep,4:8,4:6)
## Warning in mapply(rep, 4:8, 4:6): longer argument not a multiple of length
## of shorter
## [[1]]
## [1] 4 4 4 4
## 
## [[2]]
## [1] 5 5 5 5 5
## 
## [[3]]
## [1] 6 6 6 6 6 6
## 
## [[4]]
## [1] 7 7 7 7
## 
## [[5]]
## [1] 8 8 8 8 8