create_example_tables | R Documentation |
Write some example
tables as source text/ascii/parquet files.
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)
path |
Character string. A folder on your computer where the tables should be written. |
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.
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.txt
For 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.txt
For 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.txt
For create_ex_meddra_asc()
,
llt.asc, mdhier.asc, smq_content.asc, smq_list.asc
For create_ex_main_pq()
,
demo.parquet, adr.parquet, drug.parquet, link.parquet,
srce.parquet, ind.parquet, out.parquet, followup.parquet, suspdup.parquet
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
tb_vigibase()
, tb_who()
, tb_meddra()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.