Last chance! 50% off unlimited learning
Sale ends in
Checks if the character string may be used as an n-gram and its notation follows specific
convention of biogram
package.
is_ngram(x)
character
string representing single n-gram.
TRUE
if n-gram's notation is correct, FALSE
if not.
# NOT RUN {
print(is_ngram("1_1.1.1_0.0"))
print(is_ngram("not_ngram"))
# }
Run the code above in your browser using DataLab