| header_to_fwf_position | R Documentation |
Converts header line into a vector of column names
header_to_fwf_position( header, left_justified = "EXCODE", col_types = NULL, col_names = NULL, read_only = NULL )
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 |
a tibble containing the begin position, end position, and name for each column from the original header line
header_line <- "@YEAR DOY DAS SRAA ES1D ES2D ES3D ES4D ES5D ES6D ES7D ES8D" header_to_fwf_position(header_line)