Skip to contents

intvl_to_matrix() converts interval representation standardized by std_invl() to a 4-column numeric matrix. Columns represent open or closed bounds and the location of those bounds.

Usage

intvl_to_matrix(x)

Arguments

x

A character vector of standardized intervals

Value

A 4-column numeric matrix:

  • left_closed: Whether the left bound is closed or open

  • left_bound: The left bound of the interval

  • right_bound: The right bound of the interval

  • right_closed: Whether the right bound is closed or open