Description Usage Arguments Value
Takes all parties with less than nlimit
members, and changes their party
to "Other".
1 | df$party <- set_small_parties_to_other(df, "party")
|
data |
Data set to be used (either tbl or dataframe) |
colname_party |
Column name that has the party information (default is "party") |
limit |
Candidate limit for setting party membership to "Other". Default: 10 |
Returns the party column
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.