Learn R Programming

ympes (version 1.6.0)

cc: Quote names

Description

cc() quotes comma separated names whilst trimming outer whitespace. It is intended for interactive use only.

Usage

cc(..., .clip = FALSE)

Value

A character vector of the quoted input.

Arguments

...

Either unquoted names (separated by commas) that you wish to quote or a length one character vector you wish to split by whitespace.

Empty arguments (e.g. third item in one,two,,four) will be returned as "".

Character vectors not of length one are returned as is.

.clip

[bool]

Not currently used.

Examples

Run this code

cc(dale, audrey, laura, hawk)
cc("dale audrey laura hawk")

Run the code above in your browser using DataLab