dot-has_info_in_record: Check if record contains any info variables

Description Usage Arguments Value

Description

Given a dataframe that was pivoted using info variables stored in pivot_cols, return only the rows that have at least 1 info variable filled out. Essentially, check each row and return TRUE if any info column is not NA. This is necessary because not all info variables will be included in every report.

Usage

1
.has_info_in_record(record_df, pivot_cols)

Arguments

record_df

Pivoted dataframe with extracted info variables

pivot_cols

Which info columns the df was pivoted by

Value

Logical vector of which rows to keep


tsostarics/anrlab documentation built on Dec. 13, 2021, 10:11 a.m.