Skip to content

Commit

Permalink
fixes ropensci#244 drop=FALSE
Browse files Browse the repository at this point in the history
  • Loading branch information
richardjtelford committed Jun 19, 2020
1 parent eade1a7 commit 0e03ec1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/get_download.R
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ get_download.default <- function(x, verbose = TRUE) {
take <- !(taxon.list$taxon.group == "Laboratory analyses" |
taxon.list$taxon.group == "Charcoal")

count.data <- t(cast_table[take, 7:ncol(cast_table)])
count.data <- t(cast_table[take, 7:ncol(cast_table), drop = FALSE])
if ('alias' %in% colnames(taxon.list)) {
colnames(count.data) <- taxon.list$alias[take]
} else {
Expand All @@ -537,7 +537,7 @@ get_download.default <- function(x, verbose = TRUE) {
# the same way as the previous:

if (sum(take) > 0) {
lab.data <- t(cast_table[!take, 7:ncol(cast_table)])
lab.data <- t(cast_table[!take, 7:ncol(cast_table), drop = FALSE])
colnames(lab.data) <- taxon.list$alias[!take]
} else {
lab.data <- NULL
Expand Down

0 comments on commit 0e03ec1

Please sign in to comment.