Closed jfdesomzee closed 1 year ago
I have another issue with 0 rows data set (sorry to bother with specific cases).
No worries, thanks for catching these. It's very helpful when you report them 😄
Note (mostly to myself): this also occurs with slice_tail()
pacman::p_load(tidytable)
df <- tidytable(x = integer(), y = character())
df %>%
slice_tail(2)
#> # A tidytable: 1 × 2
#> x y
#> <int> <chr>
#> 1 NA <NA>
All set.
pacman::p_load(tidytable)
df <- tidytable(x = integer(), y = character())
df %>%
slice_head(2)
#> # A tidytable: 0 × 2
#> # … with 2 variables: x <int>, y <chr>
df %>%
slice_tail(2)
#> # A tidytable: 0 × 2
#> # … with 2 variables: x <int>, y <chr>
Hello,
I have another issue with 0 rows data set (sorry to bother with specific cases). When slicing head of 0 rows data I would expect to get 0 rows and not 1.