The read_faers() functions read FAERS data into a well formatted tibble.

read_faers(path)

Arguments

path

(chr) path to the FAERS .txt to read.

Value

a tibble for the FAERS table in path.

Details

The read_faers() function can automaticaly read seven different FAERS dataset: demo, drug, indi, outc, reac, rpsr and ther. It convert and adapt dataset before version 2014Q4 with the new version. Moreover, it adds a new coloums called 'period', in order to identify the time release of dataset

Examples

  if (FALSE) {
    faers_db <- read_faers(
    path = "path_demo21Q1.txt"
    )

    demo_db <- read_demo(
    path = "path_demo21Q1.txt"
    )

    identical(faers_db, demo_db)
    #TRUE
  }