Learn R Programming

functClust (version 0.1.6)

extend_vector: Extends a vector

Description

Take the vector x, then extend it until to length(x) = long.

Usage

extend_vector(x, long)

Arguments

x

any vector.

long

an integer, that corresponds to the whished length(x) = long.

Value

Return a vector of length(x) = long built by recycling x as many times as necessary, then truncated at length(x) = long.

Details

None.