Dear R-listers, I am giving part of my R code :
########################################################### n=15 m=1 library("partitions") library("gregmisc") library("combinat") x = t(restrictedparts(n-m,m)) l = length(x[,1]) for(u in 1:l){ A= unique(matrix( unlist(permn(x[u,])), ncol=m, byrow=TRUE )) } ########################################################### when I put m=1 error shows : Error in vector("list", gamma(n + 1)) : vector size specified is too large . But it works fine with other values of m (< n). Any suggestion will be highly accepted. Ritwik Bhattacharya SRF, Indian Statistical Institute Kolkata This mail is scanned by Ironport ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.