Learn R Programming

Rvision (version 0.6.0)

full: Test for a Full/Empty Queue Object

Description

full tests whether a Queue object is full, that is whether the number of frames it contains is equal to its capacity. empty tests whether a Queue object is empty, that is whether it contains no frames.

Usage

full(x)

empty(x)

Arguments

x

A Queue object.

Value

A logical.

See Also

Queue, queue, capacity

Examples

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

# }

Run the code above in your browser using DataLab