Learn R Programming

zFactor (version 0.1.9)

convertStringToVector: split a long string to create a vector for testing

Description

split a long string to create a vector for testing

Usage

convertStringToVector(str)

Arguments

str

a contnuous long string to split as a vector

Examples

Run this code
# NOT RUN {
convertStringToVector("1.05 1.10 1.20")
# result: "c(1.05, 1.1, 1.2)"
# now, you can paste the vector in your test
# }

Run the code above in your browser using DataLab