Skip to content

Commit

Permalink
list diseases in multi epidist print method epiverse-trace#302 epiver…
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulC91 committed May 16, 2024
1 parent 7f69ecf commit 1ed7046
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/epidist_db.R
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,12 @@ print.multi_epidist <- function(x, ...) {
FUN.VALUE = logical(1)
)
)
),
sprintf(
"\n Diseases available:\n %s",
paste(sort(unique(
vapply(x, function(y) y$disease, FUN.VALUE = character(1))
)), collapse = "\n ")
)
)
)
Expand Down

0 comments on commit 1ed7046

Please sign in to comment.