Learn R Programming

kdensity (version 1.1.1)

recycle: Recycles arguments.

Description

Recycles arguments.

Usage

recycle(..., prototype)

Arguments

...

A list of arguments to be recycled.

prototype

an optional argument. If given, repeats all arguments up to the length of the prototype. If an element of the list has the name, it is used. If not, the variable itself is used.

Details

Recycles arguments so that all vectors are equally long. If a prototype is given, each vector will have the same size as the prototype.