String: Generator for strings

Description Usage Arguments

View source: R/generators.R

Description

Generator for strings

Usage

1
2
String(string_length = replicate(vector_length, sample.int(101, 1) - 1),
  vector_length = 100)

Arguments

string_length

A numeric vector of string lengths (in terms of the numbers of characters) in a vector to be generated. Each element must be >= 0.

vector_length

A length of the vector to be generated. It must be >= 1.

length of string_length must be equal vector_length or string_length must be a scalar (length(string_length) == 1). The generated strings include only ASCII characters in the code range 32–126.


alekrutkowski/gentest documentation built on May 10, 2017, 11:12 p.m.