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

Add filtering of tables by creation date #12

Open
jfy133 opened this issue May 8, 2020 · 1 comment
Open

Add filtering of tables by creation date #12

jfy133 opened this issue May 8, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@jfy133
Copy link
Member

jfy133 commented May 8, 2020

In the sidora web-app I allow the user to filter given a 'creation' date range (e.g. if someone wanted to check how many libraries they made in a given year).

This would be good to to add to the functions here https://github.com/sidora-tools/sidora.core/blob/master/R/dataprep_filter_data.R

nevrome added a commit that referenced this issue May 9, 2020
…is this already sufficient, @jfy133 or do we need a more sophisticated filter function?
@nevrome
Copy link
Member

nevrome commented May 9, 2020

e.g.

library(magrittr)

con <- get_pandora_connection()

df_list <- get_df_list(c(
  "TAB_Site", "TAB_Individual", "TAB_Sample", "TAB_Extract", "TAB_Library"
), con = con)

jt <- join_pandora_tables(df_list)

jt %>% filter_date("Creation_Date.Site", start = "2019-04-10", end = "2019-05-20") %$% 
  hist(Creation_Date.Site, breaks = "weeks")

@jfy133 jfy133 added the enhancement New feature or request label Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants