Skip to contents

This function cleans the JECFA data by removing unnecessary columns and renaming the remaining ones.

Usage

process_df(df_clean)

Arguments

df_clean

A data frame with the JECFA data

Value

A data frame with the cleaned JECFA data

Examples

c(1, 2) |>
  purrr::map(\(id) compose_jecfa_list(id) |> get_result()) |>
  create_df() |>
  process_df()
#> # A tibble: 2 × 17
#>   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
#> # ℹ 12 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>