Cs: Character strings from unquoted names

Description Usage Arguments Value See Also Examples

View source: R/Cs.s

Description

Makes a vector of character strings from a list of valid S names

Usage

1

Arguments

...

any number of names separated by commas

Value

character string vector

See Also

sys.frame, deparse

Examples

1
2
Cs(a,cat,dog)
# subset.data.frame <- dataframe[,Cs(age,sex,race,bloodpressure,height)]

Example output

Loading required package: lattice
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2

Attaching package: 'Hmisc'

The following objects are masked from 'package:base':

    format.pval, round.POSIXt, trunc.POSIXt, units

[1] "a"   "cat" "dog"

Hmisc documentation built on Feb. 28, 2021, 9:05 a.m.

Related to Cs in Hmisc...