Learn R Programming

faersquarterlydata (version 1.2.0)

retrieve_faersxml: Convert FAERS xml to tabular format

Description

Convert FAERS xml to tabular format

Usage

retrieve_faersxml(
  xml_address,
  reaction_wise = TRUE,
  drug_wise = FALSE,
  drug_indication_pattern = NULL
)

Value

A tibble corresponding to the XML file

Arguments

xml_address

XML address to be read

reaction_wise

each row corresponds to a reaction (if TRUE, drug_wise cannot be TRUE)

drug_wise

each row corresponds to a drug (if TRUE, reaction_wise cannot be TRUE)

drug_indication_pattern

filter by ADR with a specific drug indication pattern (**stringr** sintax)