convertStringVectorToMatrix: Helper function: convert string vector to numeric matrix

Description Usage Arguments Value

View source: R/vs2dhReadConfig.R

Description

Helper function: convert string vector to numeric matrix

Usage

1
2
convertStringVectorToMatrix(values, splitSep = " ", byrow = TRUE,
  rows = length(values), toNumeric = TRUE)

Arguments

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

Value

Returns matrix with nrows equals to length of values input vector


KWB-R/kwb.vs2dh documentation built on Sept. 10, 2019, 12:20 p.m.