SciencesPo icon indicating copy to clipboard operation
SciencesPo copied to clipboard

largestRemainders broken?

Open cendt opened this issue 6 years ago • 0 comments

I cannot get the largestRemainders() function to work. For a minimal example like largestRemainders( parties = c("A","B","C"), votes = c(45,30,25), seats = 10, method = 'hare' )

I get an output like

Method: Hare Divisors: 1 NA NA NA ... ENP: 2.75 (After): 3 Gallagher Index: 61.54


Party Seats % Seats


NA 1 33.3

NA 1 33.3

NA 1 33.3

NA 0 0

NA 0 0

NA 0 0

NA 0 0

NA 0 0

NA 0 0

Warnmeldung: In is.na(names(TABLE)) : is.na() auf nicht-(Liste oder Vektor) des Typs 'NULL' angewendet

cendt avatar Feb 26 '19 16:02 cendt