Learn R Programming

BMSC (version 0.2.1)

handleMissingData: Exclude rows with missing values

Description

All rows with missing values on the variables from the model formula are excluded. If all rows are excluded, an error occurs. If only some of the rows are excluded, the number and percentage of excluded rows is printed via a message. In addition, the corresponding positions from the yUncertainty vector are excluded.

Usage

handleMissingData(data, formula, yUncertainty)

Arguments

data

data.frame

formula

formula object

yUncertainty

numeric: vector

Value

A list with the elements "data" (data frame containing only the relevant variables and complete rows) and "yUncertainty".