PreProcessDfDefinitions: Preprocess the definition table

View source: R/ProcessdfDefinitions.R

PreProcessDfDefinitionsR Documentation

Preprocess the definition table

Description

This function preprocess definition table - formatting and remove extra characters as well as additional description following column names (in brackets)

Usage

PreProcessDfDefinitions(df, VctAllColumns, VctColstoupper = NULL)

Arguments

df

definitiion table as dataframe

VctAllColumns

character vector containing all column names of interest (as shown in table) where preprocessing is performed

VctColstoupper

character vector containing all column names without brackets for which the characters in columns will be converted to uppercase.

Value

df

Examples

PreProcessDfDefinitions(df,c("TS(Touchscreen)","ICD10", "ICD9", "OPCS4","OPCS3","READ2","READ2_drugs", "CTV3","BNF","DMD","f.20001(sr_cancer)", "f.20002(sr_noncancer)", "f.20003(sr_med)", "f.20004(sr_oper)"),c("ICD10","ICD9","OPCS4","OPCS3"))

niekverw/ukbpheno documentation built on Oct. 30, 2023, 9:17 p.m.