mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
feat: loading of local data was internalised based on the datamods package
This commit is contained in:
parent
2c39313ffb
commit
9c1d6ed630
11 changed files with 467 additions and 69 deletions
|
|
@ -32,4 +32,19 @@ data.frame(
|
|||
) |> plot_euler("A", c("B", "C"), "D", seed = 4)
|
||||
mtcars |> plot_euler("vs", "am", seed = 1)
|
||||
mtcars |> plot_euler("vs", "am", "cyl", seed = 1)
|
||||
stRoke::trial |>
|
||||
dplyr::mutate(
|
||||
mfi_cut = cut(mfi_6, c(0, 12, max(mfi_6, na.rm = TRUE))),
|
||||
mdi_cut = cut(mdi_6, c(0, 20, max(mdi_6, na.rm = TRUE)))
|
||||
) |>
|
||||
purrr::map2(
|
||||
c(sapply(stRoke::trial, \(.x)REDCapCAST::get_attr(.x, attr = "label")), "Fatigue", "Depression"),
|
||||
\(.x, .y){
|
||||
REDCapCAST::set_attr(.x, .y, "label")
|
||||
}
|
||||
) |>
|
||||
dplyr::bind_cols() |>
|
||||
plot_euler("mfi_cut", "mdi_cut")
|
||||
stRoke::trial |>
|
||||
plot_euler(pri="male", sec=c("hypertension"))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue