ropensci / neotoma

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

Weird output from gist - issue with `get_chroncontrol`? #189

Closed SimonGoring closed 9 years ago

SimonGoring commented 9 years ago

Using this gist generally works with the most recent commit, but the line:

sapply(dated_samples, function(x)nrow(x$chron.control))

Is returning a list because some of the nrows appear to be returning NULL values. I generally understand why, but this behaviour should be fixed.

SimonGoring commented 9 years ago

This issue is resolved in commit https://github.com/ropensci/neotoma/commit/10409903fe7a668f1641ecc186e2bcc788b1ef61. The problem stemmed from an incorrect assignment of parent when data had empty chroncontrol tables.