Skip to content

Commit

Permalink
fix: remove dplyr pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhav committed Aug 13, 2024
1 parent 4b2f5a2 commit 563be2e
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions custom-transform/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,15 @@ my_transformers <- list(
)
)

data <- teal_data() %>%
within({
ADSL <- teal.data::rADSL
ADTTE <- teal.data::rADTTE
iris <- iris

CO2 <- CO2
factors <- names(Filter(isTRUE, vapply(CO2, is.factor, logical(1L))))
CO2[factors] <- lapply(CO2[factors], as.character)
})
data <- teal_data()
data <- within(data, {
ADSL <- teal.data::rADSL
ADTTE <- teal.data::rADTTE
iris <- iris
CO2 <- CO2
factors <- names(Filter(isTRUE, vapply(CO2, is.factor, logical(1L))))
CO2[factors] <- lapply(CO2[factors], as.character)
})
join_keys(data) <- default_cdisc_join_keys[c("ADSL", "ADTTE")]
teal.data::datanames(data) <- c("ADSL", "ADTTE", "iris", "CO2")

Expand Down

0 comments on commit 563be2e

Please sign in to comment.