Learn R Programming

patientProfilesVis (version 2.0.8)

filterMissingInVar: Filter missing records in data in the time and y variables, with informative message.

Description

Filter missing records in data in the time and y variables, with informative message.

Usage

filterMissingInVar(
  data,
  var,
  varLab = getLabelVar(var, labelVars = labelVars),
  labelVars = NULL
)

Value

Update data with filtered records + message in the console.

Arguments

data

Data.frame with data.

var

String with variable of interest.

varLab

String, label for var.

labelVars

Named character vector with variable labels (names are the variable code)

Author

Laure Cougnaud