spatial-microsim-book icon indicating copy to clipboard operation
spatial-microsim-book copied to clipboard

Problem with int_pp()

Open szylkrecik opened this issue 3 years ago • 0 comments

There is a problem with the int_pp function (PP integerisation) due to the limitation of summary() by maxsum argument, whose default is 100 for factors. Try int_pp(x=rep(1.3333,100000)) to reproduce the error.

My patch is:

 # Aggregate the result into a weight vector
   xsumm <- summary(as.factor(xs), maxsum = length(levels(as.factor(xs)))+1)

szylkrecik avatar Mar 24 '21 21:03 szylkrecik