Return the first or last part of a dfm
For a dfm object, return the dfm with only the first or last n
documents.
## S3 method for class 'dfm' head(x, n = 6L, ...) ## S3 method for class 'dfm' tail(x, n = 6L, ...)
x |
a dfm object |
n |
an integer vector of length up to |
... |
arguments to be passed to or from other methods. |
A dfm class object corresponding to the subset of documents
determined by by n
.
head(data_dfm_lbgexample, 3) head(data_dfm_lbgexample, -4) tail(data_dfm_lbgexample) tail(data_dfm_lbgexample, n = 3)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.