Skip to contents

Extract useful, tidy data from a gp object

Usage

gp_serve(gp)

Arguments

gp

a gp

Value

a tibble, with .row and .col, as well as any created section names and data values.

Examples


gp(16, 24) |>
  gp_sec("my_sec", nrow = 9, ncol = 7, labels = c("sample_1", "sample_2", "sample_3")) |>
  gp_serve()
#> # A tibble: 384 × 3
#>     .row  .col my_sec  
#>    <int> <int> <fct>   
#>  1     1     1 sample_1
#>  2     1     2 sample_1
#>  3     1     3 sample_1
#>  4     1     4 sample_1
#>  5     1     5 sample_1
#>  6     1     6 sample_1
#>  7     1     7 sample_1
#>  8     2     1 sample_1
#>  9     2     2 sample_1
#> 10     2     3 sample_1
#> # ℹ 374 more rows