add_from_demographics: Add Demographics Information to Info Table

View source: R/add_from_demographics.R

add_from_demographicsR Documentation

Add Demographics Information to Info Table

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

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