Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Original order? #10

Open
skanskan opened this issue Sep 14, 2017 · 0 comments
Open

Original order? #10

skanskan opened this issue Sep 14, 2017 · 0 comments

Comments

@skanskan
Copy link

skanskan commented Sep 14, 2017

hello.

How can I show the results of HighestAverages.R in the original order of the parties input?

Or how can I modify the code to prevent it from reordering the results?

I guess I need to modify these two lines:

out <- with(.temp, (parties[order(-scores)][1:seats]))  #
output <- freq(out, digits = 3, perc = TRUE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant