Learn R Programming

nlmixr2lib (version 0.3.0)

combinePaste2: Combine two strings using a naming convention

Description

Combine two in a manner similar to `paste()` strings using the default combine type

Usage

combinePaste2(
  a,
  b,
  combineType = c("default", "snake", "camel", "dot", "blank")
)

Value

Combined strings separated with `defaultCombine()`

Arguments

a

first string to combine

b

second string to combine

combineType

is the type of combination; can be:

- "default": default combine (set with `defaultCombine()`)

- "camel": camelCase combine

- "snake": snake_case combine

- "dot": dot combine (i.e. "a.b")

- "blank": no separator (i.e. "ab")

Author

Matthew L. Fidler

Examples

Run this code

combinePaste2("f", "depot")

combinePaste2("f", "depot", "snake")

combinePaste2("f", "depot", "dot")

combinePaste2("f", "depot", "blank")

Run the code above in your browser using DataLab