get_range {lazy.tools}R Documentation

Convert levels to range

Description

Convert levels to range

Usage

get_range(levels)

Arguments

levels

A vector consisting of levels

Details

This function converts levels to range:
For example, if levels=c(1,2,2,5), range will be
range=matrix( c( 1,1, 2,3, 4,5, 6,10 ), length(levels),2 byrow=1 )

Value

range: length(levels) x 2 matrix

Examples

get_range(c(1,2,2,5))


[Package lazy.tools version 0.1.3 Index]