form3numbering: provides a systematic numbering of items

Description Usage Arguments Details Value Future See Also Examples

View source: R/rbsa1.code.r

Description

Provides systematic names for a series of items according their number giving them an identical number of characters.

Usage

1
2
3
4
 
  form3numbering(nbn,type="n",bef="-",aft="-",
                 start=1+(type=="n"),
                 monitor=rbsa0$monitor$v) 

Arguments

nbn

Number of item names to generate from start.

type

Defines the type of numbering to use. There are three possibilities: A for uppercased letters, a for lowercased letters and n for arabic numbers.

bef

To put before the number.

aft

To put after the number.

start

The first number to issue (>0).

monitor

List of constants indicating the monitoring choices, see the rbsa0$monitor$v provided object as an example.

Details

Alphabetical series are "aa","ab",...,"az","ba",... Then starting from the second element means to start from "ab". It is not possible to start from the 0th element.
Numerical series are "00","01","02",...,"09","10",... Then one can start from the zeroth element which is "00" but starting from the second element means starting from "01". This inconsistency may look not desirable, but it allows to follow the natural reasoning when working in any of the two logics.

Value

character vector with nbn different strings associated to names

Future

Monitor the number of digits to obtain series of "Z01", "Z02",... ,"Z79", "Z80".

See Also

form3names

Examples

1
2
3
4
5

rbsa documentation built on May 2, 2019, 6:07 p.m.