R/quanteda-documentation.R
apply_if.Rd
Applies the modification only to documents matching a condition.
logical vector of length ndoc(x); documents are modified only when corresponding values are TRUE, others are left unchanged.
ndoc(x)
TRUE