extract_info: Extract Info Variables from Instrument

View source: R/extract.R

extract_infoR Documentation

Extract Info Variables from Instrument

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

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