Transforms the symbols within an object.

# S3 method for coded_vec
transform_symbols(x, f, type, ...)

# S3 method for corpus
transform_symbols(
  x,
  f,
  type,
  progress = if (interactive()) "text" else "none",
  ...
)

transform_symbols(x, f, type, ...)

# S3 method for vec
transform_symbols(x, f, type, ...)

Arguments

x

Object to transform.

f

Function to apply to each symbol.

type

Character scalar identifying the new symbol type.

...

Further arguments to be passed to methods.

progress

(Scalar character) Progress bar type, to be passed to llply.

Value

The transformed object.