Learn R Programming

ngramr (version 1.5.0)

print.ngram: Print n-gram contents

Description

Print n-gram contents

Usage

"print"(x, rows = 6, ...)

Arguments

x
ngram object as returned by link{ngram}
rows
number of rows to print from top and bottom of ngram data set. Default is 6.
...
additional parameters passed to default print method.

Examples

Run this code
x <- ngram(c("hacker", "programmer"), year_start = 1950)
x
print(x, rows = 3)

Run the code above in your browser using DataLab