View source: R/dfm-subsetting.R
head.dfm | R Documentation |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.