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

Issues pulling word based queries #10

Open
KFWins2022 opened this issue Jan 31, 2023 · 0 comments
Open

Issues pulling word based queries #10

KFWins2022 opened this issue Jan 31, 2023 · 0 comments

Comments

@KFWins2022
Copy link

Hey!

I am looking to pull all of the data from the Open FDA API specific to grapefruit interactions with drugs. I am trying to pull one down, then expanding it. Here is my code:

fdatest = fda_query("/drug/event.json") %>%
fda_api_key(MYKEY) %>%
fda_filter("drug.interactions", "Grapefruit") %>%
fda_search() %>%
fda_limit(1) %>%
fda_exec()
print(fdatest)

  1. It isn't working. I found the API site that said drug interactions are likely where you find the information that you'll need to filter.
  2. How can I loop it to pull more inquries. Will I use fda_skip and reset it? Would that look like this (Say I pull 100 at a time):

skip <- [1, 100]
fda_skip{skip)

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

No branches or pull requests

1 participant