c2txt: Convert vector as text

View source: R/c2txt.R

c2txtR Documentation

Convert vector as text

Description

Convert vector as text

Usage

c2txt(vector, frame = "\"", separator = ", ")

Arguments

vector

Vector that should be represented as text.

frame

Character. Specify character that should be printed before and after each element of the vector.

separator

Character. Specify character that should be printed between each element of the vector.

Value

Text representation of the vector.

Author(s)

Frederik Sachser

Examples

c2txt(names(iris)); c2txt(paste0(letters, "='", 1:length(letters), "'"), separator = ",", frame = "")

sachserf/sf documentation built on June 8, 2024, 4:23 p.m.