getRandomstrings: Generates random strings

Description Usage Arguments Value Examples

View source: R/data.R

Description

Generates random strings

Usage

1
2
3
4
5
6
7
getRandomstrings(
  center = NULL,
  maxdist = NULL,
  length = nchar(center),
  n = 1,
  method = "lv"
)

Arguments

center

Reference string, i.e. the cluster center

maxdist

The maximum allowed string distance

length

The length of the string

n

Number of strings to be generated

method

The string distance method used to calculate the string, defaults to Levensthein distance

Value

A character string

Examples

1
getRandomstrings(center="hello", maxdist = 2, n = 5)

bdlp documentation built on Jan. 13, 2021, 5:27 p.m.