Open
Description
I expected the weights
column to be removed when using the .data
pronoun in uncount()
.
df <- tibble::tibble(x = c("a", "b"), n = c(1, 2))
tidyr::uncount(df, n)
#> # A tibble: 3 × 1
#> x
#> <chr>
#> 1 a
#> 2 b
#> 3 b
tidyr::uncount(df, .data$n)
#> # A tibble: 3 × 2
#> x n
#> <chr> <dbl>
#> 1 a 1
#> 2 b 2
#> 3 b 2
Created on 2024-11-12 with reprex v2.1.1
Metadata
Metadata
Assignees
Labels
No labels