Learn R Programming

bdlp (version 0.9-2)

getRandomstrings: Generates random strings

Description

Generates random strings

Usage

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

Run this code
# NOT RUN {
getRandomstrings(center="hello", maxdist = 2, n = 5)
# }

Run the code above in your browser using DataLab