deparse_svec: Convert Integer Vectors To String (stable)

Description Usage Arguments Value See Also Examples

View source: R/strings.R

Description

Convert Integer Vectors To String

(stable)

Usage

1
2
3
4
5
6
7
deparse_svec(
  nums,
  connect = "-",
  concatenate = TRUE,
  collapse = ",",
  max_lag = 1
)

Arguments

nums

integer vector

connect

character used to connect consecutive numbers

concatenate

connect strings if there are multiples

collapse

if concatenate, character used to connect strings

max_lag

defines "consecutive", min = 1

Value

strings representing the input vector. For example, c(1, 2, 3) returns "1-3".

See Also

parse_svec

Examples

1
deparse_svec(c(1:10, 15:18))

dipsaus documentation built on Sept. 6, 2021, 5:08 p.m.