ds.if_else.Rd
DataSHIELD implementation of dplyr::if_else
.
ds.if_else(
condition = NULL,
true = NULL,
false = NULL,
missing = NULL,
ptype = NULL,
size = NULL,
newobj = NULL,
datasources = NULL
)
A list specifying a logical vector in tidyverse syntax, ie data and column names unquoted.
Vector to use for TRUE value of condition.
Vector to use for FALSE value of condition.
If not NULL, will be used as the value for NA values of condition. Follows the same size and type rules as true and false.
An optional prototype declaring the desired output type. If supplied, this overrides the common type of true, false, and missing.
An optional size declaring the desired output size. If supplied, this overrides the size of condition.
Character specifying name for new server-side data frame.
datashield connections object.
No return value, called for its side effects. A vector with the same size as
condition
and the same type as the common type of true
, false
, and
missing
is created on the server.
if (FALSE) {
## First log in to a DataSHIELD session with mtcars dataset loaded.
## Refer to the package vignette for more examples.
}