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

add a member_of() function #1

Open
cjyetman opened this issue Feb 13, 2017 · 0 comments
Open

add a member_of() function #1

cjyetman opened this issue Feb 13, 2017 · 0 comments

Comments

@cjyetman
Copy link
Owner

add a member_of() function that takes a vector as the first argument, the name of a group or association as a second argument, and returns a logical vector the same length as the vector passed as the first argument. Possibly have a third argument that allows one to choose the country code type of the first input vector (e.g. 'iso3c', 'wb', etc.), but should default to 'country.name'. Internally it would use the countrycode package to match the input vector elements to elements in the memberstates list. Write it in a way that facilitates using it within a magrittr/dplyr chain (first argument accepts the input data and returns the modified version of the input data).

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