namedVector: Class providing object with methods for communication with R6

Description Usage Format Value Fields Methods Examples

Description

Class providing object with methods for communication with R6

Usage

1

Format

R6Class object.

Value

Object of R6Class with methods to manipulate data points

Fields

names

Stores points

values

Stores y values associated with points

Methods

add(nams, vals)

This method adds names and values to the namedVector

delete_byname(nams)

This method deletes both the name and value of inputted nams from namedVector

sort_byname(decreasing=FALSE)

This method sorts the namedVector by name values.

Examples

1
ex <- namedVector$new(names = c(1,2,3), values = c(4,5,6))

andrea2910/ars documentation built on May 17, 2019, 3:13 a.m.