reframe {diyar}R 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]))

[Package diyar version 0.4.1 Index]