Add metadata to the JECFA dataset
add_metadata.Rd
This function adds metadata to the JECFA dataset. The metadata includes the type of the JECFA report, the host of the URL, the abbreviation of the JECFA report, the clean report, the FAS number, and a reference ID.
Examples
library(jecfa)
c(1, 2) |>
purrr::map(\(id) compose_jecfa_list(id) |> get_result()) |>
create_df() |>
process_df() |>
add_metadata()
#> # A tibble: 2 × 22
#> Report Report_sourcelink Tox.Monograph Tox.Monograph_source…¹ Specification
#> <chr> <chr> <chr> <chr> <chr>
#> 1 TRS 776-… http://apps.who.… FAS 24-JECFA… http://www.inchem.org… FAO Combined…
#> 2 TRS 909-… http://apps.who.… FAS 48-JECFA… http://www.inchem.org… Compendium o…
#> # ℹ abbreviated name: ¹Tox.Monograph_sourcelink
#> # ℹ 17 more variables: Specification_sourcelink <chr>, Synonyms <chr>,
#> # CAS.number <chr>, Functional.Class <chr>, Evaluation.year <chr>,
#> # Chemical.Names <chr>, JECFA.number <chr>, COE.number <chr>,
#> # FEMA.number <chr>, JECFA_name <chr>, URL <chr>, FAS <chr>, type <chr>,
#> # host <chr>, Tox_monograph_abbr <chr>, Report_clean <chr>, ref_id <int>