Learn R Programming

DSSAT (version 0.0.9)

header_to_fwf_position: Converts header line into a vector of column names

Description

Converts header line into a vector of column names

Usage

header_to_fwf_position(
  header,
  left_justified = "EXCODE",
  col_types = NULL,
  col_names = NULL,
  read_only = NULL
)

Value

a tibble containing the begin position, end position, and name for each column from the original header line

Arguments

header

A length-one character vector of a header line from a DSSAT format output file

left_justified

A character vector of column names that should be left justified

Examples

Run this code

header_line <-
  "@YEAR DOY   DAS   SRAA    ES1D    ES2D    ES3D    ES4D    ES5D    ES6D    ES7D    ES8D"
DSSAT:::header_to_fwf_position(header_line)

Run the code above in your browser using DataLab