sna_interval: Get standard NAs from interval data

Description Usage Arguments Value

Description

This function replaces observations with "-Inf;Inf" in an interval, which basically means "no information available", with the standard NAs (therefore the name 'sna'). Observations with a finite bound (e.g.x = "0;Inf") are not replaced, since they contain information (here: "x is positive").

Usage

1

Arguments

x

can by any object, but the function was designed for interval-objects.

Value

In case of x being an interval-object, it returns a n times 2 matrix. The first column is the lower bound, the second the upper bound. Otherwise it returns just x.


hmi documentation built on Oct. 23, 2020, 7:31 p.m.