expand_instcodes | R Documentation |
Add logical columns indicating institution membership to dataset
expand_instcodes(data, na.sub = NA)
data |
a data frame to add institution code columns to. Must contain term and component columns. |
na.sub |
indicates how to handle institution codes that are NA. Options are: NA (default) for leaving them as NA; TRUE for counting the term as belonging to all institutions; FALSE for counting the term as belonging to no institutions, and "drop" for dropping them. |
input data frame with institution code columns added.
expand_instcodes(epa_subset(dataset = "texas1998"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.