View source: R/splice_in_col_name.R
splice_in_col_name | R Documentation |
Splice column name into vector of column names
splice_in_col_name(col_names, new_name)
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 |
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.
cnames <-
c("@VAR#","VAR-NAME........","EXPNO","ECO#","TB(1)TO1(1)TO2(1)","TM(1)")
DSSAT:::splice_in_col_name(cnames,"TB(1)")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.