
Example source tables for VigiBase and MedDRA
Source:R/create_example_tables.R
create_example_tables.Rd
Usage
create_ex_main_txt(path)
create_ex_sub_txt(path)
create_ex_who_txt(path)
create_ex_meddra_asc(path)
create_ex_main_pq(path)
Value
A set of text/ascii files, as received by the Uppsala Monitoring Centre or MedDRA
For
create_ex_main_txt()
, DEMO.txt, DRUG.txt, LINK.txt, FOLLOWUP.txt, ADR.txt, OUT.txt, SRCE.txt, and IND.txtFor
create_ex_sub_txt()
, AgeGroup_Lx.txt, Dechallenge_Lx.txt, Dechallenge2_Lx.txt, Frequency_Lx.txt, Gender_Lx.txt, Notifier_Lx.txt, Outcome_Lx.txt, Rechallenge_Lx.txt, Rechallenge2_Lx.txt, Region_Lx.txt, RepBasis_Lx.txt, ReportType_Lx.txt, RouteOfAdm_Lx.txt, Seriousness_Lx.txt, and SizeUnit_Lx.txtFor
create_ex_who_txt()
, ATC.txt, CCODE.txt, ING.txt, MP.txt, ORG.txt, PF.txt, PP.txt, PRT.txt, PRG.txt, SRCE.txt, STR.txt, SUN.txt, ThG.txt, and Unit-X.txtFor
create_ex_meddra_asc()
, llt.asc, mdhier.asc, smq_content.asc, smq_list.ascFor
create_ex_main_pq()
, demo.parquet, adr.parquet, drug.parquet, link.parquet, srce.parquet, ind.parquet, out.parquet, followup.parquet, suspdup.parquet
Details
VigiBase tables and MedDRA tables are provided respectively
as text files and ascii files. The tb_*
family turns them
into parquet files. These create_example_*
functions are only used to produce
example source files to illustrate the tb_*
family, and parquet files for the
same purpose.
Functions
create_ex_sub_txt()
: sub txt tablescreate_ex_who_txt()
: WHO txt tablescreate_ex_meddra_asc()
: MedDRA txt tablescreate_ex_main_pq()
: main parquet tables
Examples
path <- paste0(tempdir(), "/crex/")
dir.create(path)
# You may want to use different paths for each type of tables
create_ex_main_txt(path)
create_ex_sub_txt(path)
create_ex_who_txt(path)
create_ex_meddra_asc(path)
create_ex_main_pq(path)
# Remove temporary folders when you're done
unlink(path, recursive = TRUE)