form3names: provides systematic names for items

Description Usage Arguments Details Value Examples

View source: R/f0.rbsb1.code.r

Description

Provides systematic names for a series of items according their number taking care of previous names.

Usage

1
form3names(nbn, nom=character(0), prefix="", upca=TRUE, nume=14)

Arguments

nbn

Number of new item names to generate

nom

Already present names (to avoid identical names).

prefix

Systematic prefix of all names to generate. Must comprise the dot, if one wants such a separator between it and the specific part of the name. Of course can be 'underscore' or whatever else.

upca

Indicates whether the letters constituting the new names must be uppercase or not.

nume

Its absolute value gives the number of the letter to use when the alphabet is not sufficient. When negative, alphabet is not considered as a first possibility.

Details

(see the code)

Value

vector with nbn different strings associated to new names

Examples

1
2
3
4
5
6
7
8
 rbsb3k("RESET"); # needed only for R checking, to be forgotten
 form3names(2);
 form3names(2, nume=-3);
 form3names(2, prefix="rbsb.");
 form3names(2, upca=FALSE);
 form3names(5, "D");
 form3names(5, "Y");
 form3names(30);

rbsb documentation built on May 31, 2017, 1:45 a.m.