compute_module_variables: Compute module based variables

View source: R/compute-family.R

compute_module_variablesR Documentation

Compute module based variables

Description

To be used within complete_tracks() and complete_stats() again within processData(). Checks which modules are used and which variables needs to be computed for the tracks data and summarized for the stats data. They iteratively join the computed variables to the respective data.frame. As the for loops rely on seq_along() these functions return the input data.frame if nothing needs to be computed/summarized.

Usage

compute_module_variables(track_df, object, verbose, phase)

summarize_module_variables(stat_df, track_df, object, verbose)

Arguments

track_df

The already completed track data.frame complete_tracks() is currently working with.

object

A valid cypro object.

verbose

Logical. If set to TRUE informative messages regarding the computational progress will be printed.

(Warning messages will always be printed.)

phase

Character or numeric. If character, the ordinal value referring to the phase of interest (e.g. 'first', 'second' etc.). referring to the phase of interest or 'all'. If numeric, the number referring to the phase.

If set to NULL takes the phase denoted as default with adjustDefault().

Ignored if the experiment design contains only one phase.

stat_df

The already summarized stats data.frame complete_stats() is currently working with.


theMILOlab/cypro documentation built on April 5, 2022, 2:03 a.m.