fill {zipR}R Documentation

Use a given fillvalue to fill in a shorter sequence and returns a sequence of equal length to the longer sequence. Takes a subset of the fill sequence if fill sequence is longer than the difference between the longer and shorter sequences

Description

Use a given fillvalue to fill in a shorter sequence and returns a sequence of equal length to the longer sequence. Takes a subset of the fill sequence if fill sequence is longer than the difference between the longer and shorter sequences

Usage

fill(longer, shorter, fillvalue)

Arguments

longer

longer vector-like object

shorter

shorter vector-like object

fillvalue

sequence of value(s) to fill in shorter vector. If fillvalue is longer than the difference between 'shorter' and 'longer', values from fillvalue will be taken only until 'shorter' is the same length as 'longer'


[Package zipR version 0.1.1 Index]