namedVector: Class providing object with methods for communication with R6

Description Usage Arguments Format Value Methods Active bindings Methods Examples

Description

Class providing object with methods for communication with R6

Class providing object with methods for communication with R6

Usage

1

Arguments

...

Passes all arguments to the constructor. See documentation for the Constructor below.

Format

R6Class object.

Value

Object of R6Class with methods to manipulate data 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.

Active bindings

names

Stores points

values

Stores y values associated with points

Methods

Public methods


Method new()

Usage
namedVector$new(names, values)

Method get()

Usage
namedVector$get(nams)

Method add()

Usage
namedVector$add(nams, vals)

Method delete_byname()

Usage
namedVector$delete_byname(nams)

Method sort_byname()

Usage
namedVector$sort_byname(decreasing = FALSE)

Method print()

Usage
namedVector$print()

Method clone()

The objects of this class are cloneable with this method.

Usage
namedVector$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

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

andrea2910/ars documentation built on June 17, 2021, 3:32 a.m.