## Not run:
# ##Create 4x4 matrix
# mtx<-matrix(sample(0:1, 16, replace=T), nrow=4)
# ##Create distributed array spread across the cluster
# da<-as.darray(mtx)
# psize(da)
# ##Create distributed array with single partition
# db<-as.darray(mtx, psize=dim(mtx))
# psize(db)
# ##Create distributed array with two partitions
# dc<- as.darray(mtx, psize=c(2,4))
# psize(dc)
# ##Fetch first partition
# collect(dc,1)
# ## End(Not run)
Run the code above in your browser using DataLab