[R] R Error : Error in vector("list", gamma(n + 1)) : vector size specified is too large

ritwik_r at isical.ac.in ritwik_r at isical.ac.in
Tue Jun 5 07:24:51 CEST 2012


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



More information about the R-help mailing list