View source: R/loadExposome_plain.R
loadExposome_plain | R Documentation |
data.frame
Creation of an ExposomeSet from single data.frame
loadExposome_plain( data, data_id, sep = ",", pheno_cols, na.strings = c("NA", "-", "?", " ", ""), families = NULL, exposures.asFactor = 5, warnings = TRUE )
data |
|
data_id |
|
sep |
|
pheno_cols |
|
na.strings |
|
families |
|
exposures.asFactor |
|
warnings |
(default |
An object of class ExposomeSet.
path <- file.path(path.package("rexposome"), "extdata") phenotype <- file.path(path, "phenotypes.csv") exposures <- file.path(path, "exposures.csv") ee <- read.csv(exposures, header=TRUE) pp <- read.csv(phenotype, header=TRUE) # Create fake dataset with exposures and phenotypes combined data <- cbind(ee, pp) loadExposome_plain <- function(data, data_id = "idnum", pheno_cols = c("rhinitis", "wheezing", "sex", "age", "cbmi", "blood_pre", "whistling_chest","flu"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.