Learn R Programming

hmi (version 0.9.16)

center_interval: Function to give the center of the interval

Description

Function to give the center of the interval object

Usage

center_interval(interval, inf2NA = FALSE)

Arguments

interval

an object from class interval

inf2NA

logical. If TRUE, entries containing -Inf or Inf, will return NA.

Value

A numeric vector