redcap_identity_from_csv: Gets IDENTITY data and cleans up based on parameters

Description Usage Arguments Value

View source: R/redcap_identity_from_csv.R

Description

Gets IDENTITY data and cleans up based on parameters

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
redcap_identity_from_csv(
  path_to_identity,
  target_cols,
  redcap_forms_to_exclude = NULL,
  rm_na_concepts = TRUE,
  keep_all_cols = TRUE,
  dont_trimws = FALSE,
  remove_all = "\t|\n",
  include_duplicates = FALSE,
  exclude_concepts = NULL,
  log = TRUE
)

Arguments

path_to_identity

path to the rawidentity csv

target_cols

vector of the names of the columns that will be melted into the "KEY_FIELD" variable

keep_all_cols

TRUE if all the variables are wanted in the output. Otherwise, only the target_cols will be selected.

dont_trimws

TRUE if white spaces on both the left and right side are not desired in the output

remove_all

character string of length 1 representing the string of artifact and other values to be removed from the final output separated by the OR operator

include_duplicates

TRUE if all the duplicates are desired in the output

Value

dataframe where raw REDCap data dictionary dataframe is processed to a concept level where the target_cols parameter identifies the target columns in the raw data as concepts


patelm9/cartographR3 documentation built on Dec. 27, 2019, 2:24 a.m.