View source: R/stringOperators.R
solutionFunctionGeneratorString | R Documentation |
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
solutionFunctionGeneratorString(N, lts = c("A", "C", "G", "T"))
N |
length of the permutations returned |
lts |
letters allowed in the string |
returns a function, without any arguments
fun <- solutionFunctionGeneratorString(10,c("A","C","G","T"))
fun()
fun()
fun()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.