ccq: Easy quote characters - fancy version

Description Usage Arguments Value Note Author(s) Examples

View source: R/cq.R

Description

Easy quote characters - fancy version

Usage

1
ccq(x, ..., .clip = TRUE)

Arguments

x

Either an unquoted variable or a quoted string which you wish to split on spaces; all white space will be trimmed, then normalized to a single space.

...

Unquoted variables (seperated by commas) that you wish to quote; empty arguments (e.g. third item in one,two,,four) will be returned as blanks. If x is a quoted string then ... should be empty

.clip

Should the code to generate the constructed character vector be copied to your system clipboard; defaults to TRUE.

Value

a character vector

Note

The system clipboard will only be used in interactive sessions.

Author(s)

Tim Taylor and Carl Pearson

Examples

1
2
3
cq("  dale    audrey   laura hawk ")
cq(dale, audrey, laura, hawk)
# clipboard will contain c("dale", "audrey", "laura", "hawk")

tjtnew/coffee documentation built on Dec. 23, 2021, 11 a.m.