extract_info: Extract Info Variables from Instrument

Description Usage Arguments Value

View source: R/extract.R

Description

Extract the information from the top of each instrument such as age & tsonset. This is valuable to filter which records you actually want, then you can filter each instrument via joining operations

Usage

1
2
3
4
5
6
7
extract_info(
  report_data,
  lookup = anrlab::anrlab_instruments,
  make_uid = TRUE,
  record_id_col = "record_id",
  filter_by = "user"
)

Arguments

report_data

Dataframe, the raw report data from get_report or importing from .csv

lookup

Dataframe, instrument Name-Prefix lookup table from generate_table or read in from a .csv

make_uid

Logical, should a unique id from the record id, instrument, and instance number be made?

record_id_col

String, name of the record id column, defaults to record_id

filter_by

String, name of the column to filter out NAs, defaults to user

Value

A dataframe with all of the "info" data from each instrument


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