Learn R Programming

diyar (version 0.5.1)

reframe: Modify sub_criteria objects

Description

Modify the attributes of a sub_criteria object.

Usage

reframe(x, ...)

# S3 method for 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

Run this code
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]))

Run the code above in your browser using DataLab