Skip to contents

Extract the training labels or response variable from an object.

Usage

y_train(obj)

# S3 method for class 'mvpa_design'
y_train(obj)

# S3 method for class 'mvpa_model'
y_train(obj)

# S3 method for class 'feature_rsa_model'
y_train(obj)

# S3 method for class 'feature_rsa_design'
y_train(obj)

Arguments

obj

The object from which to extract the training response variable.

Examples

ds <- gen_sample_dataset(D = c(4, 4, 4), nobs = 10)
y_train(ds$design)
#>  [1] e b a d c c b d a e
#> Levels: a b c d e