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

Starting value for entrez_search #11

Closed
chartgerink opened this issue Oct 5, 2013 · 4 comments
Closed

Starting value for entrez_search #11

chartgerink opened this issue Oct 5, 2013 · 4 comments

Comments

@chartgerink
Copy link

Hi,

I am using the rpubmed package (latest dev version from github) to retrieve links to articles and download the HTML subsequently. To create a more stable function, I want to retrieve the ids from entrez_search() in incremental steps (e.g., 1-1000 first, then 1001-2000, etc). However, I cannot find the argument where I can specify the starting number for the returns of the search (e.g., 1001). Is there a way to specify it?—if so, what is the argument?

It is a very tiny question, but I could not find it anywhere.

Best and thanks for the awesome package,
Chris

@sckott
Copy link
Contributor

sckott commented Oct 6, 2013

Hey @chartgerink , Will get back to you asap...S

@DASpringate
Copy link
Member

Hi @chartgerink You can pass any of the arguments in the original api to entrez_search
www.ncbi.nlm.nih.gov/books/NBK25499/#_chapter4_ESearch_

So, a retstart argument to entrez_search to give you something like:

plasticity_ids <- entrez_search("pubmed", "phenotypic plasticity", retmax = 2600, retstart = 500)$ids
Should work for you.

@chartgerink
Copy link
Author

Thanks! I will make sure the package is cited when we try to publish our findings. 👍

@DASpringate
Copy link
Member

On 07/10/2013 15:57, Chris Hartgerink wrote:

Thanks! I will make sure the package is cited when we try to publish
our findings. 👍


Reply to this email directly or view it on GitHub
#11 (comment).

Great! Let me know when you do!

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

3 participants