parseArgString | R Documentation |
generic function for parsing delimited lists from BATCH mode argument strings.
parseArgString(string, delimiter=',', min.param.ct=2, max.param.ct=2, param.range=NULL)
string |
string to parse. |
delimiter |
how the string is delmited into a vector. |
min.param.ct |
minimum number of parameters in the vector. |
max.param.ct |
maximum number of parameters in the vector. |
param.range |
the range of the parameter values. |
a vector or value that has been check for validity
## passes
parseArgString('apple,banana,pear', param.range=c("apple","banana","pear","pineapple"))
parseArgString('1,2,3', param.range=c(1,4))
## fails
## Not run:
parseArgString('apple,banana,pear', param.range=c("apple","banana"))
parseArgString('1,2,3', param.range=c(1,2))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.