add_from_demographics: Add Demographics Information to Info Table

Description Usage Arguments Value

View source: R/add_from_demographics.R

Description

This is a wrapper for left_join to make it a bit easier for people without knowledge of SQL-esque joins to simply take information from the demographics table (such as subject ID or aphasia status) and add it to the info table.

Usage

1
2
3
4
5
6
add_from_demographics(
  extracted_info,
  demographics,
  include_cols,
  record_id_col = "record_id"
)

Arguments

extracted_info

Output of extract_info

demographics

Demographics table from split_instruments

include_cols

Which columns to add to the info table

record_id_col

Defaults to record_id

Value

The extracted_info dataframe with the columns from demographics specified in include_cols


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