Description Usage Arguments Examples
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
1 | longestVec(..., tieBreaker = "last")
|
... |
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'. |
1 | longestVec(1:5, c('a','b'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.