knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(vaers)
This gives a brief introduction into the vaers package.
This package includes the datasets: vaers_2010, vaers_2011, ..., vaers_2020.
These datasets stem from the "Vaccine Adverse Event Reporting System (VAERS)" and contain information about different vaccinations and the corresponding adverse events.
This package also contains to functions which makes the preprocessing of the vaers data easier:
This functions searches for given keywords in the columns symptom1 - symptom5 (using regEx) and creates a dummy variable for a specific symptom.
newdata = create_dummy(data = vaers_2020, name = "headache", symptoms = c("Headache")) head(newdata)
This function takes a vaers dataset or a dataset from the output of the create_dummy() function filters for a specific vaccine name and reorders the columns of the dataframe.
newdata = create_dataset(data = vaers_2020, vaxname = "COVID19 (COVID19 (JANSSEN))") head(newdata)
In order to use the create_dataset() function it might be helpful to have a list of the vaccine names. This function provides this list, just insert the dataset of interest.
show_vaccines(data = vaers_2020)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.