create_example_tables {vigicaen} | R Documentation |
Example source tables for VigiBase and MedDRA
Description
Write some example
tables as source text/ascii/parquet files.
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)
Arguments
path |
Character string. A folder on your computer where the tables should be written. |
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.
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
Functions
-
create_ex_sub_txt()
: sub txt tables -
create_ex_who_txt()
: WHO txt tables -
create_ex_meddra_asc()
: MedDRA txt tables -
create_ex_main_pq()
: main parquet tables
See Also
tb_vigibase()
, tb_who()
, tb_meddra()
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)