check_inst_codes: check_inst_codes

View source: R/export_utils.R

check_inst_codesR Documentation

check_inst_codes

Description

Check if institution codes are present and add if needed.

Usage

check_inst_codes(data, na.sub = TRUE)

Arguments

data

dataframe to check

na.sub

option indicating what to do with missing institution codes. TRUE (default; count term as belonging to all institutions), FALSE (count term as belonging to no institutions), "drop" (drop terms with missing institution codes), or NA (leave code as NA).

Details

TODO: If there are some columns which don't include institution codes, do I need to add them?

Value

dataframe with institution codes added if needed


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