Learn R Programming

tsensembler (version 0.0.5)

FIFO: First-In First Out

Description

First-In First Out utility function inserts a new value inval into a given sequential vector x, dropping the last value of the sequence

Usage

FIFO(x, inval)

Arguments

x

a vector;

inval

new input value for vector x of the same mode as vector

Value

A new vector x

Examples

Run this code
# NOT RUN {
FIFO(1:10, 11)
FIFO(LETTERS[1:10], letters[1])

# }

Run the code above in your browser using DataLab