dot-has_info_in_record: Check if record contains any info variables

.has_info_in_recordR Documentation

Check if record contains any info variables

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

.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 Nov. 6, 2022, 3:54 a.m.