Skip to content

Commit

Permalink
parse_family(): Fix for R<4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Nov 14, 2023
1 parent d04c9b0 commit ccf2943
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/family-classes.R
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ parse_family <- function(family, column_metadata = TRUE, flat = TRUE) {
taxsub <- as.data.frame(data.table::rbindlist(lapply(decompose_taxon_code(res$code), function(x) {
y <- taxon_code_to_taxon(as.character(rev(x)))
z <- data.frame(taxsubgrp = NA_character_, taxgrtgroup = NA_character_,
taxsuborder = NA_character_, taxorder = NA_character_)
taxsuborder = NA_character_, taxorder = NA_character_,
stringsAsFactors = FALSE)
z[1, ] <- tail(c(rep(NA_character_, 4), y), 4)
z
})), stringsAsFactors = FALSE)
Expand Down

0 comments on commit ccf2943

Please sign in to comment.