solutionFunctionGeneratorString: String Generator Function

Description Usage Arguments Value Examples

View source: R/stringOperators.R

Description

Returns a function that generates random strings of length N, with given letters. Can be used to generate individual solutions for permutation problems, e.g., Travelling Salesperson Problem

Usage

1
solutionFunctionGeneratorString(N, lts = c("A", "C", "G", "T"))

Arguments

N

length of the permutations returned

lts

letters allowed in the string

Value

returns a function, without any arguments

Examples

1
2
3
4
fun <- solutionFunctionGeneratorString(10,c("A","C","G","T"))
fun()
fun()
fun()

CEGO documentation built on May 14, 2021, 1:08 a.m.