Learn R Programming

radiant.data (version 1.6.3)

make_vec: Convert a string of numbers into a vector

Description

Convert a string of numbers into a vector

Usage

make_vec(x)

Arguments

x

A string of numbers that may include fractions

Examples

Run this code
make_vec("1 2 4")
make_vec("1/2 2/3 4/5")
make_vec(0.1)

Run the code above in your browser using DataLab