if (FALSE) {
## First log in to a DataSHIELD session with mtcars dataset loaded.
ds.case_when(
tidy_expr = list(
mtcars$mpg < 10 ~ "low",
mtcars$mpg >= 10 & mtcars$mpg < 20 ~ "medium",
mtcars$mpg >= 20 ~ "high"
),
newobj = "test",
datasources = conns
)
## Refer to the package vignette for more examples.
}
Run the code above in your browser using DataLab