Use dplyr syntax with Mongo DB

Is it possible, with mongolite or another R package to use dplyr syntax. I was thinking something like:

premium_diamonds <- dmd %>%
   filter(cut == "Premium",
            price < 1000)

instead of this:

premium_diamonds <- dmd$find('{"cut" : "Premium", "price" : { "$lt" : 1000 } }')

This way I could use my familiarity with dplyr to make complex queries.

Read more here:

Content Attribution

This content was originally published by dca at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: