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
identity_from_csv(path_to_identity, target_cols,
  redcap_forms_to_exclude = NULL, keep_all_cols = FALSE,
  dont_trimws = FALSE, remove_all = "\t|\n",
  include_duplicates = FALSE, 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/cartographR documentation built on Dec. 18, 2019, 5:54 a.m.