Learn R Programming

epicmodel (version 0.2.1)

remove_na: Removing NA in icc and outc

Description

Remove any entries that only consist of NA from data.frames icc (Incompatible Component Causes) and outc (outcome definition) from an epicmodel_steplist.

Usage

remove_na(steplist)

Value

An epicmodel_steplist object without entries in data.frame icc, which contain 'NA' in either id1 or id2 as well as entries in data.frame outc that contain 'NA' in id_outc. If you made any changes, you need to call check_steplist() again.

Arguments

steplist

An epicmodel_steplist or epicmodel_steplist_checked object.

Examples

Run this code
x <- remove_na(steplist_party)

Run the code above in your browser using DataLab