tests/testthat/_snaps/column_headers.md

Headers apply as expected

Code
  ct2$header$dataset
Output
    Sepal.Length Sepal.Width Petal.Length Petal.Width Species
  1      Flowers     Flowers                                 
  2        Sepal       Sepal        Petal       Petal        
  3       Length       Width       Length       Width
Code
  ct2$header$spans
Output
  $rows
       [,1] [,2] [,3] [,4] [,5]
  [1,]    2    0    2    0    1
  [2,]    2    0    2    0    1
  [3,]    1    1    1    1    1

  $columns
       [,1] [,2] [,3] [,4] [,5]
  [1,]    1    1    1    1    3
  [2,]    1    1    1    1    0
  [3,]    1    1    1    1    0
Code
  ct3$header$dataset
Output
    Sepal.Length Sepal.Width Petal.Length Petal.Width Species
  1       Flower      Flower       Flower      Flower        
  2        Sepal       Sepal        Petal       Petal        
  3       Length       Width       Length       Width
Code
  ct3$header$spans
Output
  $rows
       [,1] [,2] [,3] [,4] [,5]
  [1,]    4    0    0    0    1
  [2,]    2    0    2    0    1
  [3,]    1    1    1    1    1

  $columns
       [,1] [,2] [,3] [,4] [,5]
  [1,]    1    1    1    1    3
  [2,]    1    1    1    1    0
  [3,]    1    1    1    1    0


Try the clinify package in your browser

Any scripts or data that you put into this service are public.

clinify documentation built on April 12, 2025, 1:45 a.m.