Learn R Programming

Rvision (version 0.6.0)

nrow.Rcpp_Queue: 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 Rcpp_Queue length(x)

Arguments

x

A Queue object.

Value

A numeric value.

See Also

dim which returns all dimensions.

Examples

Run this code
# NOT RUN {
balloon <- video(system.file("sample_vid/Balloon.mp4", package = "Rvision"))
buf <- queue(balloon)
nrow(buf)
ncol(buf)
length(buf)

# }

Run the code above in your browser using DataLab