longestVec: The function takes in multiple vectors of any length, and...

Description Usage Arguments Examples

Description

The function takes in multiple vectors of any length, and returns the one with the longest length. The tieBreaker variable controls if the first or the last of the longest vectors gets returned in case there are multiple

Usage

1
longestVec(..., tieBreaker = "last")

Arguments

...

vectors of any length

tieBreaker

decides if the first or the last longest vector gets returned if there are multiple longest vectors. Can be either 'first' or 'last'. Default to 'last'.

Examples

1
longestVec(1:5, c('a','b'))

calACS documentation built on May 2, 2019, 3:37 p.m.

Related to longestVec in calACS...