-
Notifications
You must be signed in to change notification settings - Fork 0
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 thecountrycode
package to match the input vector elements to elements in thememberstates
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).The text was updated successfully, but these errors were encountered: