create_dummy | R Documentation |
Creating a new dummy-variable
create_dummy(data = vaers_2020, name = "newdummy", symptoms)
data |
A dataset from the vaers datasets in this package (named "vaers_20xx") |
name |
The name the new variable should have |
symptoms |
A vector of strings (symptoms) for which the function should search |
Returns the input dataset with a new dummy-variable attached
create_dummy(vaers_2018, "breathlessness", c("Breathlessness")) create_dummy(data = vaers_2018, name = "breathlessness", symptoms = c("Breathlessness")) vaers_2020 %>% create_dummy("fatigue", c("Fatigue", "Lethargy", "Somnolence", "Asthenia", "Hypersomnia", "Depressed level of consciousness"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.