Skip to content
Prev 68534 / 398525 Next

How to override coerion error in 'scan'

Kittler, Richard wrote:
No, I think you are looking for something fuzzy that does not exist, 
AFAIK. Sorry, I was too short, here.

I mean read it in as character. Then use some function (e.g. using 
regular expressions) to detect what is numeric and what not (e.g. 
"03/15/200523:56:03"), replace the latter by NA and convert to numeric.

Uwe