Learn R Programming

DTwrappers (version 0.0.2)

reduce.vector.expression: Takes a numeric vector and produces a statement with a more compact representation. For instance, c(1,2,3,4) would become '1:4' and c(1:3, 4:6) could become '1:6'.

Description

Takes a numeric vector and produces a statement with a more compact representation. For instance, c(1,2,3,4) would become '1:4' and c(1:3, 4:6) could become '1:6'.

Usage

reduce.vector.expression(x)

Arguments

x

a numeric vector

Value

None