#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)
Run the code above in your browser using DataLab