powered by
splitQual extracts qualified and unqualified vectors from a character vector containing concatenated numeric and qualifying characters.
splitQual
Typically used to split ``less-thans" in qualifier-numeric concatenations like ``<0.5".
splitQual(v, qual.symbol= "
splitQual returns a list of three vectors.
A numeric vector of values associated with qualified input.
A numeric vector of values associated with unqualified input
Indexes of qualified values (ie., where qual.symbol was matched)
Indexes of unqualified values (ie., where qual.symbol was not matched)
A character vector.
The qualifier symbol to split from the characters in v. Defaults to ``<".
R. Lopaka Lee <[email protected]>
Dennis Helsel <[email protected]>
Lee and Helsel (2005), Statistical analysis of environmental data containing multiple detection limits: S-language software for regression on order statistics, Computers in Geoscience vol. 31, pp. 1241-1248
v = c('<1', 1, '<1', 1, 2) splitQual(v)
Run the code above in your browser using DataLab