R/vs2dhReadConfig.R
convertStringVectorToMatrix.RdHelper function: convert string vector to numeric matrix
convertStringVectorToMatrix(values, splitSep = " ", byrow = TRUE, rows = length(values), toNumeric = TRUE)
| values | character vector to be converted to matrix |
|---|---|
| splitSep | seperator used as split parameter in function strsplit (Default: " ") |
| byrow | If TRUE matrix is filled by rows first. Default: TRUE |
| rows | for constructing matrix: Default: length(values) |
| toNumeric | If true values will be converted to numeric, if FALSE not |
Returns matrix with nrows equals to length of values input vector