get_range {lazy.irtx} | R Documentation |
Convert levels to range
get_range(levels)
levels |
A vector consisting of levels |
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 )
range: length(levels) x 2 matrix
get_range(c(1,2,2,5))