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

sampleID dropped from counts with single sample #244

Open
richardjtelford opened this issue Jun 19, 2020 · 0 comments
Open

sampleID dropped from counts with single sample #244

richardjtelford opened this issue Jun 19, 2020 · 0 comments

Comments

@richardjtelford
Copy link
Contributor

richardjtelford commented Jun 19, 2020

If a dataset has a single sample, rownames are dropped from the counts and lab.data

library(neotoma)
dat <- get_download(39476)
#> API call was successful. Returned record for Big Sandy Reservoir
#> Warning in FUN(X[[i]], ...): This dataset has no defined default chronology.  Please use caution.
#> Using the first chronology, No chronology as the default.
rownames(counts(dat)$`39476`)
#> [1] "1"

Created on 2020-06-19 by the reprex package (v0.3.0)

I think the some drop = FALSE are needed - I'll try to send a pull request

richardjtelford pushed a commit to richardjtelford/neotoma that referenced this issue Jun 19, 2020
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

1 participant