pvector {hypeR} | R Documentation

## A push/pop capable vector

### Description

A push/pop capable vector

### Usage

    pvector

### Format

An object of class `R6ClassGenerator` of length 24.

### Arguments

values

  A vector of values

### Methods

`print(pvector)` prints vector values.

`pvector$length()` returns length of vector values.

`pvector$pop()` pops vector, returning popped value.

`pvector$push()` pushes to vector.

### Examples

    pv <- pvector$new(c(1,2,3))
    popped <- pv$pop()
    pv$push(4)
    pv$push(c(5,6))
    print(pv)

[Package hypeR version 1.3.0 Index]