strvec: Auto-collapse of Vectors

Description Usage Arguments Value Author(s) Examples

View source: R/strvec.R

Description

strvec is a utility function which collapses all elements of a vector into a character scalar.

Usage

1
  strvec(x = NULL)

Arguments

x

A string of characters.

Value

A character scalar consisting of all the elements of x separated by a single white space.

Author(s)

Sebastien Bihorel (sb.pmlab@gmail.com)

Examples

1
2
  strvec(letters[1:10])
  strvec(1:10)

Example output

Loading required package: Matrix
[1] "a b c d e f g h i j"
[1] "1 2 3 4 5 6 7 8 9 10"

optimbase documentation built on Jan. 27, 2022, 1:14 a.m.