Reputation: 41
After upgrading R recently, I've starting getting an error when trying transmute a data.table, stating that :=
can only be used on a quasi quoted argument. I've searched for a fix but came up short. Reproducible example below using R 3.5.1. Any advice?
library(dplyr) #0.7.8
library(data.table) #1.11.8
library(dtplyr) #0.0.2
set1 = mtcars %>% data.table()
transmute(set1 ,mpg2 = mpg*1)
Error:
:=
can only be used within a quasiquoted argument
Upvotes: 2
Views: 724
Reputation: 41
Solved by using the development version of dtplyr:
https://github.com/hadley/dtplyr/issues/62
Upvotes: 2
Reputation: 9
Convert set1 into a tibble.
set1 %>% as_tibble() %>% transmute(mpg2 = mpg * 1)
Upvotes: -1