The read_faers()
functions read FAERS data into a well formatted
tibble.
read_faers(path)
(chr) path to the FAERS .txt
to read.
a tibble for the FAERS table in path
.
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
if (FALSE) {
faers_db <- read_faers(
path = "path_demo21Q1.txt"
)
demo_db <- read_demo(
path = "path_demo21Q1.txt"
)
identical(faers_db, demo_db)
#TRUE
}