Description Usage Arguments Details Value Examples
This function
calculates the percentage of possible seats a party got in each country. That is the number of seats gained by Party(1) in country(a) as a percentage of total seats that country(a) has in the EU Parliament for any given year.
1 |
df |
The |
columns |
The |
keep |
What columns of the inputed |
Warning: This function will return the percentage of each column compared to all selected columns. Therefore, if not all parties/political groups are selected, the function will not return the percentage of all possible seats within each country.
Returns a dataframe
containing the rows from the inputted dataframe
listed in keep
and the
columns assigned to argument columns
and returns those values as percentages of total possible seats, rather than in absolute values and an extra column "country_seats" with the total number of available seats per country (in other words, the sum of each column's values).
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.