Skip to content
Prev 350205 / 398506 Next

misbehavior with extract_numeric() from tidyr

The hyphen without a following digit confuses tidyr::extract_numeric().
E.g.,
   > extract_numeric("23 ft-lbs")
   Warning message:
   In extract_numeric("23 ft-lbs") : NAs introduced by coercion
   [1] NA
   > extract_numeric("23 ft*lbs")
   [1] 23
Contact the BugReports address for the package
   > packageDescription("tidyr")$BugReports
   [1] "https://github.com/hadley/tidyr/issues"
or package's maintainer
   > maintainer("tidyr")
   [1] "Hadley Wickham <hadley at rstudio.com>"
to report problems in a user-contributed package.



Bill Dunlap
TIBCO Software
wdunlap tibco.com

On Mon, Apr 20, 2015 at 12:10 AM, arnaud gaboury <arnaud.gaboury at gmail.com>
wrote: