is.Corpus: Is Corpus

Description Usage Arguments Value Examples

View source: R/corpus.R

Description

check if an object inherits from class Corpus

Usage

1
is.Corpus(obj)

Arguments

obj

an object

Value

true if the object inherits from Corpus

Examples

1
2
3
4
x <- structure(class='Any')
is.Corpus(x) # -> FALSE
class(x) <- c(class(x), 'Corpus')
is.Corpus(x) # -> TRUE

duncankmckinnon/ezRnlp documentation built on Aug. 6, 2020, 1:28 a.m.