Learn R Programming

bupaR (version 1.0.0)

act_recode: Recode activity labels

Description

Recode one or more activity labels through specifying their old and new label

Usage

act_recode(log, ...)

# S3 method for log act_recode(log, ...)

# S3 method for grouped_log act_recode(log, ...)

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

...

A sequence of named character vectors of length one where the names gives the new label and the value gives the old label. Labels not mentioned will be left unchanged.

Methods (by class)

  • act_recode(log): Recode activity labels of event log

  • act_recode(grouped_log): Recode activity labels of event log

See Also

eventlog, activity_id, act_unite

Other Activity processing functions: act_collapse(), act_unite()