Gives back the data frames a stage_map() widget holds, as they were given to stage_map() and the add_*()
functions, with every column (also the columns the engine does not read). Use it to look at a map's data in R, or to
change a table and build the map again.
Arguments
- map
A
stage_map()widget, with any layers added.
Value
A named list of data frames. A map that is not a stage_map() widget, or a map whose hosted option no
argument of stage_map() gives, is an error of class stagemap_error_widget.
Details
The list holds only the tables the map has, in the order cards, stages, lanes, statuses, links, kinds,
zones, steps, changes and variants. stages and lanes are always there: when stage_map() was not given
them, they are the tables it took from the cards. statuses is there only when it was given as a data frame; given
as a named character vector, it is an argument, not a table. stage_map_code() gives the code that builds the map
again.
See also
Other stage map:
add_links(),
add_steps(),
add_variants(),
add_zones(),
stage_map(),
stage_map_code()
Examples
map <- stage_map(
data.frame(id = c("a", "b"), label = c("Draft", "Review"), stage = c("w", "c"), lane = "docs")
) |>
add_links(data.frame(from = "a", to = "b"))
tables <- stage_map_tables(map)
names(tables)
#> [1] "cards" "stages" "lanes" "links"
tables$stages
#> id label
#> 1 w w
#> 2 c c