tests/testthat/_snaps/data-slice.md

typical_values works for a data frame

Code
  tv
Output
  # A tibble: 1 x 2
        x     z
    <dbl> <dbl>
  1 0.491 0.511

data_slice works for a data frame

Code
  ds
Output
  # A tibble: 25 x 4
            x     y     f     z
        <dbl> <dbl> <dbl> <dbl>
   1 0.000239 0.297 0.303 0.511
   2 0.0419   0.297 0.303 0.511
   3 0.0835   0.297 0.303 0.511
   4 0.125    0.297 0.303 0.511
   5 0.167    0.297 0.303 0.511
   6 0.208    0.297 0.303 0.511
   7 0.250    0.297 0.303 0.511
   8 0.292    0.297 0.303 0.511
   9 0.333    0.297 0.303 0.511
  10 0.375    0.297 0.303 0.511
  # i 15 more rows
Code
  ds
Output
  # A tibble: 625 x 4
            x       z     y     f
        <dbl>   <dbl> <dbl> <dbl>
   1 0.000239 0.00170 0.297 0.303
   2 0.000239 0.0433  0.297 0.303
   3 0.000239 0.0849  0.297 0.303
   4 0.000239 0.126   0.297 0.303
   5 0.000239 0.168   0.297 0.303
   6 0.000239 0.210   0.297 0.303
   7 0.000239 0.251   0.297 0.303
   8 0.000239 0.293   0.297 0.303
   9 0.000239 0.334   0.297 0.303
  10 0.000239 0.376   0.297 0.303
  # i 615 more rows


gavinsimpson/gratia documentation built on May 4, 2024, 8:13 a.m.