reframe: Modify 'sub_criteria' objects

View source: R/reframe.R

reframeR Documentation

Modify sub_criteria objects

Description

Modify the attributes of a sub_criteria object.

Usage

reframe(x, ...)

## S3 method for class 'sub_criteria'
reframe(x, func = identity, ...)

Arguments

x

[sub_criteria].

...

Arguments passed to methods.

func

[function]. Transformation function.

See Also

sub_criteria; eval_sub_criteria; attr_eval

Examples

s_cri <- sub_criteria(month.abb, month.name)
reframe(s_cri, func = function(x) x[12])
reframe(s_cri, func = function(x) x[12:1])
reframe(s_cri, func = function(x) attrs(x[1:6], x[7:12]))

diyar documentation built on Nov. 13, 2023, 1:08 a.m.