expand_instcodes: Add logical columns indicating institution membership to...

expand_instcodesR Documentation

Add logical columns indicating institution membership to dataset

Description

Add logical columns indicating institution membership to dataset

Usage

expand_instcodes(data, na.sub = NA)

Arguments

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.

Value

input data frame with institution code columns added.

Examples

expand_instcodes(epa_subset(dataset = "texas1998"))

ahcombs/actdata documentation built on Jan. 15, 2025, 6:48 p.m.