Learn R Programming

multimedia (version 0.2.0)

mediators,mediation_data-method: Access to @mediators in Mediation Data

Description

This is an accessor returns the @mediators slot in a mediation_data object.

Usage

# S4 method for mediation_data
mediators(object)

Value

m A data.frame whose rows are samples and columns are values of mediators across those samples.

Arguments

object

An object of class mediation_data.

Examples

Run this code
exper <- demo_joy() |>
    mediation_data("PHQ", "treatment", starts_with("ASV"))
mediators(exper)

Run the code above in your browser using DataLab