The function takes an input of a character string (path to the markdown file generated by [extract_decisions()]) or a data frame/tibble and returns a decision table object
as_decision_tbl(x)
# S3 method for class 'character'
as_decision_tbl(x)
# S3 method for class 'tbl_df'
as_decision_tbl(x)
A tibble of class decision_tbl
raw_df <- read.csv(system.file("papers.csv", package = "dossier")) |> tibble::as_tibble()
as_decision_tbl(raw_df)
#> # A tibble: 35 × 8
#> paper variable type model method parameter reason decision
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 braga barometric_pressure param… gene… LOESS smoothin… to mi… NA
#> 2 braga barometric_pressure spati… gene… NA NA to al… chosen …
#> 3 braga humidity param… gene… LOESS smoothin… to mi… NA
#> 4 braga humidity spati… gene… NA NA to al… chosen …
#> 5 braga temperature param… gene… LOESS smoothin… to mi… NA
#> 6 braga temperature spati… gene… NA NA to al… chosen …
#> 7 braga time param… gene… LOESS smoothin… to el… NA
#> 8 braga time spati… gene… NA NA seaso… chosen …
#> 9 katsouyanni humidity param… gene… LOESS smoothin… to mi… NA
#> 10 katsouyanni humidity tempo… gene… NA NA NA same da…
#> # ℹ 25 more rows
as_decision_tbl(system.file("braga.md", package = "dossier"))
#> # A tibble: 4 × 8
#> paper model variable method parameter type reason decision
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 braga generalized additive Po… time loess smoothin… para… to el… separat…
#> 2 braga generalized additive Po… tempera… loess smoothin… para… to al… chosen …
#> 3 braga generalized additive Po… humidity loess smoothin… para… to al… chosen …
#> 4 braga generalized additive Po… baromet… loess smoothin… para… to al… chosen …