Description Usage Arguments Value Examples
View source: R/loadExposome_plain.R
Creation of an ExposomeSet from single data.frame
1 2 3 4 5 6 7 8 9 10 |
data |
|
data_id |
|
sep |
|
pheno_cols |
|
na.strings |
|
families |
|
exposures.asFactor |
|
warnings |
(default |
An object of class ExposomeSet.
1 2 3 4 5 6 7 8 9 10 | 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.