Convenience function to quickly copy-paste a vector

qVec(x, fn = NULL)

qVecSum(x)

Arguments

x

A string with numbers, separated by arbitrary whitespace.

fn

An optional function to apply to the vecor before returning it.

Value

The numeric vector or result of calling the function

Examples

qVec('23   9   11   14   12   20');
#> [1] 23  9 11 14 12 20