extractRunoffData: Separation of Fixed Width Columns

View source: R/storm_files.R

extractRunoffDataR Documentation

Separation of Fixed Width Columns

Description

Separation of columns of 'columnWidth' characters width each

Usage

extractRunoffData(runoff_raw, columnWidth = 8, columnNames = NULL, version = 1)

Arguments

runoff_raw

vector of character representing the text lines containing data in columns of fixed width

columnWidth

number of characters in each column

columnNames

column names to be given to the result data frame

version

1: loop, 2: sapply

Value

The function returns a data frame with column names as given in columnNames.


KWB-R/kwb.read documentation built on Oct. 2, 2023, 10:40 a.m.