splice_in_col_name: Splice column name into vector of column names
Description
Splice column name into vector of column names
Usage
splice_in_col_name(col_names, new_name)
Value
If new_name matches a substring, the function will
return a new character vector with it spliced into the existing
col_names in the position immediately before the element
that contained the matching substring. Otherwise the original
col_names will be returned.
Arguments
col_names
A length-one character vector of a header line
from a DSSAT format output file
new_name
A length-one character vector that contains a
column name suspected to be a substring of one of the existing
elements of the col_names vector.