apply_if: Modify only documents matching a logical condition

apply_ifR Documentation

Modify only documents matching a logical condition

Description

Applies the modification only to documents matching a condition.

Arguments

apply_if

logical vector of length ndoc(x); documents are modified only when corresponding values are TRUE, others are left unchanged.


quanteda/quanteda documentation built on April 15, 2024, 7:59 a.m.