Skip to contents

[Deprecated]

This function allowed you to describe whether a had non-missing values for a set of variables. It was depricated because you can now use dsTidyverseClient::ds.filter() to create a subset of a data frame matching multiple conditions.

Usage

dh.defineCases(
  df = NULL,
  vars = NULL,
  type = NULL,
  new_obj = NULL,
  conns = NULL,
  checks = FALSE,
  newobj = NULL
)

Arguments

df

Character specifying a server-side data frame.

vars

Character vector of columns within df to form definition set.

type

Character specifying how to define cases. Use "any" to describe subjects with data on any of vars, and "all" to describe subjects with data on all of `vars.

new_obj

Character specifying name for created serverside object.

conns

DataSHIELD connections object.

checks

Logical; if TRUE checks are performed prior to running the function. Default is TRUE.

newobj

Retired argument name. Please use `new_obj' instead.

Value

Server-side vector defining whether subject meets criteria defined by vars and type. 1 indicates that criteria were met, 0 indicates that criteria weren't met.