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

get_dataset with "datasettype" specified returns other dataset types #217

Open
bocinsky opened this issue Mar 6, 2017 · 1 comment
Open

Comments

@bocinsky
Copy link

bocinsky commented Mar 6, 2017

Occurs when object of type site is passed to the function:

> "Beef*" %>%
+   neotoma::get_site() %>%
+   neotoma::get_dataset(datasettype = "pollen")
The API call was successful, you have returned  1 records.
A dataset_list containing 3 objects:
Accessed from 2017-03-05 20:29h to 2017-03-05 20:29h. 
Datasets:
 dataset.id    site.name    long      lat           type
        250 Beef Pasture -108.15 37.41667 pollen        
       7913 Beef Pasture -108.15 37.41667 geochronologic
      10472 Beef Pasture -108.15 37.41667 charcoal

My understanding is that the returned datasets should be filtered to only include "pollen" datasets.

NOTE: Correct behavior when passing a numeric site identifier to get_dataset:

> 246 %>%
+   neotoma::get_dataset(datasettype = "pollen")
The API call was successful, you have returned 1 record.

A dataset_list containing 1 objects:
Accessed from 2017-03-05 20:42h to 2017-03-05 20:42h. 
Datasets:
 dataset.id    site.name    long      lat   type
        250 Beef Pasture -108.15 37.41667 pollen
@SimonGoring
Copy link
Member

Thanks! I'll look into this this week.

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

2 participants