makeCamelCase: Convert to camel case by replacing dots by captial letters

Description Usage Arguments Value Author(s) Examples

View source: R/utils.R

Description

Convert a vector of characters to camel case by replacing dots by captial letters.

Usage

1
makeCamelCase(x, prefix)

Arguments

x

A vector to be transformed to camel case.

prefix

An optional character of length one. Any additional elements are ignores.

Value

A character of same length as x.

Author(s)

Laurent Gatto

Examples

1
2
3
nms <- c("aa.foo", "ab.bar")
makeCamelCase(nms)
makeCamelCase(nms, prefix = "x")

MSnbase documentation built on Jan. 23, 2021, 2 a.m.