splitQual {NADA} | R Documentation |
splitQual
extracts qualified and unqualified vectors
from a character vector containing concatenated
numeric and qualifying characters.
Typically used to split ``less-thans" in qualifier-numeric concatenations like ``<0.5".
splitQual(v, qual.symbol= "<")
v |
A character vector. |
qual.symbol |
The qualifier symbol to split from the characters in v. Defaults to ``<". |
splitQual
returns a list of three vectors.
qual |
A numeric vector of values associated with qualified input. |
unqual |
A numeric vector of values associated with unqualified input |
qual.index |
Indexes of qualified values (ie., where qual.symbol was matched) |
unqual.index |
Indexes of unqualified values (ie., where qual.symbol was not matched) |
Lopaka(Rob) Lee <rclee@usgs.gov>
v = c('<1', 1, '<1', 1, 2) splitQual(v)