Description Usage Arguments Value Examples
View source: R/load-data.R View source: R/load-data copy.R
This is the outward facing wrapper function to process and load data for analysis. This function will read SomaLogic and Study Data, Impute missing adjusting covariates, filter data for exclusions
1 | get.visit(soma.data, path.mods, master)
|
soma.data |
SomaLogic Proteomic Raw Data from |
path.mods |
Char vector path to folder structure containing new
adjustment variables, filtering conditions, and outcome variables. This
folder must contain csv files formatted as detailed in |
master |
Tibble of master data file with study data. Output of
|
Tibble of study data merged with Proteomics Data, labelled, and filtered.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
labels <- get.labels('data/proteinMapping.csv', sid,
uniprot.full.name,
entrezgenesymbol,
flag2 == 0)
aric.master <- haven::read_dta('data/ARICmaster_121820.dta')
soma.data <- get.soma('data/somaV5.txt', labels)
fifth.visit <- get.visit(soma.data = soma.data,
path.mods = 'data/visit-five',
labels = labels,
master = aric.master))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.