presagia-analytics / ctrialsgov

Query Data from ClinicalTrials.gov
https://presagia-analytics.github.io/ctrialsgov/
Other
12 stars 3 forks source link

Calculate values for `ol` object: `sponsor_type` designations have changed #7

Closed kaneplusplus closed 2 years ago

kaneplusplus commented 2 years ago

It looks like the sponsor types have changed in the latest database dump:

> names(table(ctrialsgov:::.volatiles$tbl_join$sponsor_type))
 [1] "AMBIG"     "FED"       "INDIV"     "INDUSTRY"  "NETWORK"   "NIH"
 [7] "Other"     "OTHER"     "OTHER_GOV" "UNKNOWN"

Can ol be added to the volatiles and be calculated when ctgov_create_data(con) is called?

kaneplusplus commented 2 years ago

As an alternative,sponsor_type could be included in the arguments handled by ignore_case. This may be something that should be incorporated regardless of how ol is created.

statsmaths commented 2 years ago

Most recent commit now creates the ol list when creating the data and stores it in .volatiles. We can talk about the ignore case option tomorrow in case that still makes sense too.