--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/1a71d272-5174-45f0-a0df-da97ea97fccd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/211fc558-066b-411c-9d44-a324050d5e59%40googlegroups.com.
p.s. I'd love to hear about your book. :)Hi Jamie!
The short answer is yes. :)
Let's first define our terms, especially dataset vs. file.
A "dataset" within Dataverse is a collection of one or more files *plus* metadata about those files: http://guides.dataverse.org/en/4.0/user/dataset-management.html
Since I see `read.dta` in your example and http://j.mp/BPchap7 redirects to http://spia.uga.edu/faculty_pages/monogan/computing/r/BPchap7.dta it sounds like what you're calling a dataset would be referred to as a *file* in Dataverse. You want to download a Stata file to process in R.
You *can* download files directly like this:
https://apitest.dataverse.org/api/access/datafile/12
But of course when you say "stable" you probably mean that you'd like to reference a DOI. Files in Dataverse do not have DOIs but datasets do. Currently, the best way to look up a dataset via DOI is via SWORD: http://guides.dataverse.org/en/4.0/api/sword.htmlFrom SWORD you can get a list of file IDs, such as "12" in the example above. That "access" API endpoint is documented at http://guides.dataverse.org/en/4.0/api/dataaccess.htmlSince you're using R, you'll probably be interested in keeping an eye on the status of Dataverse 4.0 compatibility of this R package: https://github.com/ropensci/dvn/issues/23 . That package is also listed here: http://guides.dataverse.org/en/4.0/api/client-libraries.htmlI hope this helps! Please let me know if anything is unclear. There's a lot to unpack. :)Phil
On Sat, May 23, 2015 at 2:05 AM, Jamie Monogan <jmon...@gmail.com> wrote:
Hi everyone! Is it possible for me to make datasets I post on Dataverse directly accessible through a URL in R? In other words, I want to something to the effect of this in R, but with a Dataverse-hosted URL:
evolution<-read.dta("http://j.mp/BPchap7",convert.factors=FALSE)
I've written a book about using R and want the code to call stable references to the data when readers try things out. Thank you for any tips you can offer!
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/1a71d272-5174-45f0-a0df-da97ea97fccd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/1a71d272-5174-45f0-a0df-da97ea97fccd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/37cc5299-23c7-46c0-bc8a-130fadfa3f12%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/1a71d272-5174-45f0-a0df-da97ea97fccd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/37cc5299-23c7-46c0-bc8a-130fadfa3f12%40googlegroups.com.