Return List with Table Row/Col Paths
See also
cell_values()
, fnotes_at_path<-
,
row_paths_summary()
, col_paths_summary()
Examples
lyt <- basic_table() %>%
split_cols_by("ARM") %>%
analyze(c("SEX", "AGE"))
tbl <- build_table(lyt, ex_adsl)
tbl
#> A: Drug X B: Placebo C: Combination
#> ————————————————————————————————————————————————————————————
#> SEX
#> F 79 77 66
#> M 51 55 60
#> U 3 2 4
#> UNDIFFERENTIATED 1 0 2
#> AGE
#> Mean 33.77 35.43 35.43
row_paths(tbl)
#> [[1]]
#> [1] "ma_SEX_AGE" "SEX"
#>
#> [[2]]
#> [1] "ma_SEX_AGE" "SEX" "F"
#>
#> [[3]]
#> [1] "ma_SEX_AGE" "SEX" "M"
#>
#> [[4]]
#> [1] "ma_SEX_AGE" "SEX" "U"
#>
#> [[5]]
#> [1] "ma_SEX_AGE" "SEX" "UNDIFFERENTIATED"
#>
#> [[6]]
#> [1] "ma_SEX_AGE" "AGE"
#>
#> [[7]]
#> [1] "ma_SEX_AGE" "AGE" "Mean"
#>
col_paths(tbl)
#> [[1]]
#> [1] "ARM" "A: Drug X"
#>
#> [[2]]
#> [1] "ARM" "B: Placebo"
#>
#> [[3]]
#> [1] "ARM" "C: Combination"
#>
cell_values(tbl, c("AGE", "Mean"), c("ARM", "B: Placebo"))
#> $`B: Placebo`
#> [1] 35.43284
#>