Skip to content
Prev 350170 / 398506 Next

misbehavior with extract_numeric() from tidyr

On Mon, Apr 20, 2015 at 9:10 AM, arnaud gaboury
<arnaud.gaboury at gmail.com> wrote:
-------------------------------------------------------------------------
 as.numeric(gsub("[^0-9]", "",playerStats))
 [1]             10 56714486000000           1038       15327123
   14268          11126           1744            294        2995484
[10]             75         189731        3006364           1204
     486          12481           1240           3169           1394
[19]            230            240             15            276
       4          83226
--------------------------------------------------------------------

The above command does the job, but I still can not figure out why
extract_numeric() returns two NA