create_dataset: Filtering and rearranging the dataset

View source: R/create_dataset.R

create_datasetR Documentation

Filtering and rearranging the dataset

Description

Filtering and rearranging the dataset

Usage

create_dataset(data = vaers_2020, vaxname = "ZOSTER (SHINGRIX)")

Arguments

data

One of the vaers datasets or the output of the create_dummy function from this package

vaxname

Name of the vaccine you want to filter for. Please use show_vaccines(data = vaers_20xx) to get a sorted list of the vaccine names.

Value

Returns the filtered dataset with a new column order.

Examples

create_dataset(vaers_2020, "COVID19 (COVID19 (JANSSEN))")
create_dataset(data = vaers_2020, vaxname = "COVID19 (COVID19 (JANSSEN))")
vaers_2020 %>% create_dataset(vaxname = "COVID19 (COVID19 (JANSSEN))")
vaers_2018 %>% create_dummy("headache", c("Headache")) %>% create_dataset("ZOSTER (SHINGRIX)")
vaers_2018 %>% create_dummy("headache", c("Headache")) %>% create_dummy("breathlessness", c("Breathlessness")) %>%  create_dataset("ZOSTER (SHINGRIX)")

janoleko/vaers documentation built on Sept. 30, 2022, 11:12 a.m.