## Not run:
# ## A dlist created by adding two input vectors
# a <- dmapply(function(x,y) x+y, 1:5, 2:6, nparts=3)
# collect(a)
#
# ##Create a darray with 4 partitions. Partitions are stitched in 2x2 fashion,
# # meaning the overall dims of the darray will be 4x4.
# b <- dmapply(function(x) matrix(x,2,2), 1:4,output.type="darray",combine="rbind",nparts=c(2,2))
# collect(b,1) #First partition
# collect(b)
# ## End(Not run)
Run the code above in your browser using DataLab