codename: Codename

Description Usage Arguments Details Examples

View source: R/codename.R

Description

The main function for defining reproducible codenames

Usage

1
2
3
4
5
6
codename(
  x,
  pattern = "%s %s - %s - %s // %s",
  conventions = list("colors_english", "animals", "numbers_3", "test1", c("test2",
    "test3"))
)

Arguments

x

A vector of values to be encoded

pattern

A format string. See ?sprintf().

conventions

A list of naming convention. This should be a list of either (1) naming conventions from the list below or (2) a vector of custom values. The list should be equal in length to the number of values required by the pattern string.

Details

The set of acceptable values for conventions are listed below:

Examples

1
codename(c("Dan",1234))

polymathematic/CodenameR documentation built on Aug. 19, 2020, 12:09 a.m.