queue_dimensions: The Number of Rows/Columns and Length of a Queue

nrow.Rcpp_QueueR Documentation

The Number of Rows/Columns and Length of a Queue

Description

nrow, ncol and nframes return the number of rows, columns or frames present in a Queue object.

Usage

nrow.Rcpp_Queue(x)

ncol.Rcpp_Queue(x)

## S3 method for class 'Rcpp_Queue'
length(x)

Arguments

x

A Queue object.

Value

A numeric value.

Author(s)

Simon Garnier, garnier@njit.edu

See Also

dim which returns all dimensions.

Examples

balloon <- video(system.file("sample_vid/Balloon.mp4", package = "Rvision"))
buf <- queue(balloon)
nrow(buf)
ncol(buf)
length(buf)


swarm-lab/Rvision documentation built on Feb. 7, 2024, 4:59 a.m.