Skip to content

names_transform? #40

@tdhock

Description

@tdhock

hi @TysonStanley related to #39 I was wondering if you plan to implement the names_transform argument? e.g.

> tidyr::pivot_longer(data.table("1"=10, "2"=20), 1:2, names_to="int", names_transform=list(int=as.integer))
# A tibble: 2 x 2
    int value
  <int> <dbl>
1     1    10
2     2    20
> print(tidyfast::dt_pivot_longer(data.table("1"=10, "2"=20), 1:2, names_to="int", names_transform=list(int=as.integer)), class=TRUE)
      int value
   <char> <num>
1:      1    10
2:      2    20
> 

Code above shows that tidyr converts int column to integer but tidyfast does not (names_transform argument is ignored).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions