disease_expose: Helper to Create a 'disease_expose' Object

View source: R/disease_expose.R

disease_exposeR Documentation

Helper to Create a disease_expose Object

Description

Creates an object of class disease_expose with the data provided and selected in the Shiny gadget

Usage

disease_expose(x)

Arguments

x

The data.frame containing disease-exposure data, with all disease and exposure columns as binary variables

Value

An object of class disease_expose and data.frame containing binary variables for disease and exposure data

Examples

## Not run: 

de_data <- disease_expose_data # use the example data in the package

cleaned_de_data <- clean_disease_expose(data = de_data, disease = "disease", noDisease = "No", exposures = c("exposure1", "exposure2", "exposure3")) # clean the data using specific columns in the dataset

de_object <- disease_expose(cleaned_de_data) # simply call the function and select specifics in the Shiny gadget that pops up

## End(Not run)

npeters1322/hospEpi documentation built on April 30, 2022, 6:12 p.m.