Learn R Programming

quincunx (version 0.1.9)

subset-performance_metrics: Subset a performance_metrics object

Description

You can subset performance_metrics by identifier or by position using the `[` operator.

Usage

# S4 method for performance_metrics,missing,missing,missing
[(x, i, j, ..., drop = FALSE)

# S4 method for performance_metrics,numeric,missing,missing [(x, i, j, ..., drop = FALSE)

# S4 method for performance_metrics,character,missing,missing [(x, i, j, ..., drop = FALSE)

Value

A performance_metrics object.

Arguments

x

A performance_metrics object.

i

Position of the identifier or the name of the identifier itself.

j

Not used.

...

Additional arguments not used here.

drop

Not used.

Examples

Run this code
if (FALSE) { # interactive()
# Get a few performance metrics:
my_ppm <- get_performance_metrics(sprintf('PPM%06d', 38:42))

#
# Subsetting by position
#
my_ppm[c(1, 4)]

#
# Subsetting by performance metrics identifier (character)
#
my_ppm['PPM000042']
}

Run the code above in your browser using DataLab