Converts a string vector to a numeric vector according to the following:
Elements exactly matching any value in
missingreturnNA.Otherwise, elements matching any fixed pattern in
patternreturn1.All other elements return
0.
See also
Other basic:
OR.0.rm(),
OR.F.to.NA(),
OR.NA.rm(),
OR.NA.to.0(),
OR.NA.to.F(),
OR.NA.to.empty(),
OR.as.numeric()