colearendt / tidyjson

Tidy your JSON data in R with tidyjson
Other
182 stars 15 forks source link

Get dplyr::left_join (and others) to work #50

Closed jeremystan closed 8 years ago

jeremystan commented 8 years ago

This fails, and there is no leftjoin method:

new <- '[1, 2, 3]' %>% gather_array("num") %>%
  left_join(data_frame(num = 1:3, letters = letters[1:3]), by = "num")

expect_is(new, "tbl_json")
jeremystan commented 8 years ago

This is not trivial, as the rows of the tbl_json object might be changed. Probably reasonable to assume that joins require converting tbl_json to tbl_df objects. Closing this issue.