Convert a string of numbers into a vector

make_vec(x)

Arguments

x

A string of numbers that may include fractions

Examples

make_vec("1 2 4")
#> [1] 1 2 4
make_vec("1/2 2/3 4/5")
#> [1] 1/2 2/3 4/5
make_vec(0.1)
#> [1] 0.1