ProcessDfDefinitions: ProcessDfDefinitions

Description Usage Arguments Value Examples

View source: R/ProcessdfDefinitions.R

Description

Process definitions, for input

Usage

1
2
3
4
5
6
ProcessDfDefinitions(df, VctAllColumns = c("TS", "SR", "TS_RX", "SR_RX",
  "LAB", "ICD10CODES", "ICD9CODES", "OPCS4CODES", "OPCS3CODES",
  "TS_AGE_DIAG_COLNAME", "READCODES", "CTV3CODES", "BNFCODES", "DMDCODES",
  "n_20001_", "n_20002_", "n_20003_", "n_20004_", "DEPENDENCY"),
  VctColstoupper = c("ICD10CODES", "ICD9CODES", "OPCS4CODES",
  "OPCS3CODES"), fill_dependencies = T)

Arguments

VctAllColumns

Vct

dfDefinitions

df

Value

None

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#
#This function processes an excel file with definitions and is automtically performed in CreateUKBiobankPhentoypes().
#It can be usefull to run this function as a check prior to running CreateUKBiobankPhentoypes.
#
#VctAllColumns contains all column names of interest, so that it can ignore everything else.
#20001, 20002 and 20004 go into SR
#READCODES and 20003 is parsed into RX
#
#
#
VctAllColumns<-  c("TS", "SR", "TS_RX", "SR_RX", "LAB", "ICD10CODES", "ICD9CODES", "OPCS4CODES","OPCS3CODES", "TS_AGE_DIAG_COLNAME", "READCODES","CTV3CODES","BNFCODES","DMDCODES", "n_20001_",    "n_20002_", "n_20003_", "n_20004_", "DEPENDENCY")
ProcessDfDefinitions(dfDefinitions,VctAllColumns)

niekverw/ukpheno documentation built on May 4, 2020, 9:01 p.m.