Description Usage Arguments Value Examples
Convert one-dimensional character objects to integers.
1 | str2int(string)
|
string |
A character vector. |
An integer (not necessarily unique).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Should all produce the same integer (currently results in 124)
str2int("Simulation 1")
str2int("simulation 1")
str2int("SIMULATION 1")
str2int("simulation.1")
str2int("simulation..1")
str2int("simulation-1")
str2int("simulation - 1")
str2int("simulation---1")
str2int("simulation1")
# Potential issues
str2int("abc") # does not provide unique integers
str2int("cba")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.