rchar: Generate random character fields

Description Usage Arguments Examples

View source: R/random_generators.R

Description

Generate artificial code fields from random characters and integers.

Usage

1
rchar(slength = 8, cols, size, type = "0Aa")

Arguments

slength

String length

cols

Column name for the generated data

size

Number of rows to be generated

type

Fied type specification. "0" generates numbers, "A" capital letters and "a" small letters. The values "0Aa" can be combined and given in any order. The value "m" produces a special hour-minute timestamp of the form [00-59][00-59].

Examples

1
rchar(4, "code", 20, type="A0")

avirkki/synergetr documentation built on May 18, 2019, 9:16 p.m.