Description Usage Arguments Details Value Examples
normalize_string
takes a character vector and normalizes its input using the symbols 0, 1, 2...9. count_class
takes a character vector and an integer alphabet
(with the restriction that the number of different symbols in the character vector doesn't exceed alphabet
) and returns the total number of strings that are equivalent to the input when normalized and considering alphabet
. alternations
returns the number of alternations of symbols in a string.
1 2 3 4 5 | normalize_string(string)
count_class(string, alphabet)
alternations(string, proportion = FALSE)
|
string |
|
alphabet |
|
proportion |
|
nothing yet.
normalize_string
A normalized vector of strings of the same length as string
.
count_class
A vector of the same length as string
with the number of possible equivalent strings when string
is normalized and considering alphabet
.
alternations
A vector with the number (or proprtion) of alternations of the same length as string
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #normalize_string:
normalize_string(c("HUHHEGGTE", "EGGHHU"))
normalize_string("293948837163536")
# count_class
count_class("010011",2)
count_class("332120",4)
count_class(c("HUHHEGGTE", "EGGHHU"), 5)
count_class(c("HUHHEGGTE", "EGGHHU"), 6)
# alternations:
alternations("0010233")
alternations("0010233", proportion = TRUE)
alternations(c("HUHHEGGTE", "EGGHHU"))
alternations(c("HUHHEGGTE", "EGGHHU"), proportion = TRUE)
|
Loading required package: acss.data
[1] "010023342" "011223"
[1] "012134425672827"
[1] 2
[1] 24
[1] 120 120
[1] 720 360
[1] 4
[1] 0.6666667
[1] 6 3
[1] 0.75 0.60
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.