ropensci / neotoma

Programmatic R interface to the Neotoma Paleoecological Database.
https://docs.ropensci.org/neotoma
Other
30 stars 16 forks source link

create `download` method for `get_chroncontrol` #181

Closed SimonGoring closed 9 years ago

SimonGoring commented 9 years ago

Currently if someone wants to get the chroncontrol tables for a set of records they have to do the following (from scratch):

library(neotoma)
nh11k.datasets  <- get_dataset(datasettype='pollen', ageold = 12000,ageyoung=-100,
                               altmin = 100, altmax = 105)
nh11k.downloads <- get_download(nh11k.datasets)

chron.lists <- lapply(nh11k.downloads, function(x)
                                      get_chroncontrol(x$sample.meta$chronology.id[1]))

It would be better if we could just wrap this more clearly into a chroncontrol object, with a method for downloads.

SimonGoring commented 9 years ago

This issue is resolved with commit 2c452017767fb4c65d54ebe4d3d97de6b5816e37. There are now methods for download and download_list objects.