Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


optimbase (version 1.0-9)

strvec: Auto-collapse of Vectors

Description

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

Usage

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.

Examples

Run this code
  strvec(letters[1:10])
  strvec(1:10)

Run the code above in your browser using DataLab