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

Documentation request: Joining datasets #32

Open
iainmwallace opened this issue Jun 25, 2017 · 3 comments
Open

Documentation request: Joining datasets #32

iainmwallace opened this issue Jun 25, 2017 · 3 comments
Assignees

Comments

@iainmwallace
Copy link

Hi,

Could you provide an example of how to annotate or join across datasets using the R client?

For example, how could I replicate something like below if I had the datasets "planes" and "flights" saved to a vault?

library(nycflights13)
library(dplyr)
planes%>%
filter(engines==2)%>%
left_join(flights)

Thanks!

Iain

@davecap
Copy link
Member

davecap commented Jun 25, 2017

Hi Iain,

Unfortunately there is no way to do a SQL-like join across datasets on SolveBio, but you can use our annotation system to pull data together from various datasets. There are some docs available here:

Dynamic annotation (docs are Python only but I recently added R support and will update the docs)
https://docs.solvebio.com/guides/annotations/

Dataset migrations (add/edit columns, create new datasets with annotated columns):
https://docs.solvebio.com/guides/datasets/migrations/

The expression language:
https://docs.solvebio.com/guides/expressions/

I'll make sure the docs are updated with R examples for the above.

@davecap davecap self-assigned this Jun 25, 2017
@iainmwallace
Copy link
Author

Thanks Dave, that sounds great.

Could you document how one could annotate the flights table with the engine count from the plane table? This dataset is widely used to demonstrate techniques in the tidy verse.

@davecap
Copy link
Member

davecap commented Jun 26, 2017

Ah I see what you mean now, that's a good idea I'll put something together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants