Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

separate() removal issue when overwriting col #680

Closed
markfairbanks opened this issue Nov 1, 2022 · 0 comments · Fixed by #681
Closed

separate() removal issue when overwriting col #680

markfairbanks opened this issue Nov 1, 2022 · 0 comments · Fixed by #681
Labels
bug Something isn't working

Comments

@markfairbanks
Copy link
Owner

pacman::p_load(tidytable)

df <- tidytable(x = c(NA, "x.y", "x.z", "y.z"))

df %>%
  tidyr::separate(x, c("x", "B"))
#> # A tidytable: 4 × 2
#>   x     B    
#>   <chr> <chr>
#> 1 <NA>  <NA> 
#> 2 x     y    
#> 3 x     z    
#> 4 y     z

df %>%
  separate(x, c("x", "B"))
#> # A tidytable: 4 × 1
#>   B    
#>   <chr>
#> 1 <NA> 
#> 2 y    
#> 3 z    
#> 4 z
@markfairbanks markfairbanks added the bug Something isn't working label Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant