is_ngram: Validate n-gram

Description Usage Arguments Value Examples

View source: R/is_ngram.R

Description

Checks if the character string may be used as an n-gram and its notation follows specific convention of biogram package.

Usage

1

Arguments

x

character string representing single n-gram.

Value

TRUE if n-gram's notation is correct, FALSE if not.

Examples

1
2
print(is_ngram("1_1.1.1_0.0"))
print(is_ngram("not_ngram"))

biogram documentation built on March 31, 2020, 5:14 p.m.