Skip to content

Commit

Permalink
Change dplyr::mutate code to base code because dplyr is not used for …
Browse files Browse the repository at this point in the history
…this package.
  • Loading branch information
fukuhiro2023 committed Aug 10, 2023
1 parent 9e6f31e commit 3ada2fd
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions R/ae_forestly.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,11 @@ ae_forestly <- function(outdata, filter = c("prop", "n"), width = 1400) {

for (par in parameters[(!(parameters %in% unique(outdata$parameter_order)))]){
outdata$tbl <-
rbind(outdata$tbl, NA) |>
dplyr::mutate(
name = ifelse(is.na(name), "No data to display", name),
parameter = factor(ifelse(is.na(parameter), par, as.character(parameter)),
levels(outdata$parameter_order))
)
rbind(outdata$tbl, NA)
outdata$tbl$name <- ifelse(is.na(outdata$tbl$name), "No data to display", outdata$tbl$name)
outdata$tbl$parameter <-
factor(ifelse(is.na(outdata$tbl$parameter), "ser", as.character(outdata$tbl$parameter)),
levels(outdata$parameter_order))
}

outdata$tbl$parameter <- factor(
Expand Down

0 comments on commit 3ada2fd

Please sign in to comment.