CSourceQ: CSourceQ

Description Usage Arguments Format Methods Author(s) See Also Examples

Description

CSourceQ Sources a Corpus object from a Quanteda object.

Usage

1

Arguments

name

Optional character vector indicating name for Corpus object.

x

Character vector or a list of character vectors containing text.

Format

An object of class R6ClassGenerator of length 24.

Methods

Author(s)

John James, jjames@datasciencesalon.org

See Also

Other Corpus Source Classes: CSource0, CSourceDir, CSourceFileSet, CSourceTM, CSourceV

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
text <- c("The firm possesses unparalleled leverage in Washington,
thanks in part to its track record of funneling executives into
senior government posts. Even the Trump administration, which
rode a populist wave to electoral victory, is stocked with
Goldman alumni, including Treasury Secretary Steven Mnuchin and
the departing White House economic adviser Gary D. Cohn.",
"Goldman is also an adviser to many of America’s — and the
world’s — largest companies, ranging from stalwarts like Walt
Disney to upstarts like Uber.")

corpus <- CSource$new(x = txt, name = "Goldman")$vector()

DecisionScients/NLPStudio documentation built on May 15, 2019, 12:51 p.m.