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 5fc88d1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions custom-transform/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,16 @@ my_transformers <- list(
)
)

data <- teal_data() %>%
within({
ADSL <- teal.data::rADSL
ADTTE <- teal.data::rADTTE
iris <- iris
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)
})
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 5fc88d1

Please sign in to comment.