[R] strange behavior in base::as.double

Carl Witthoft ce||ocgw @end|ng |rom gm@||@com
Wed May 1 17:32:32 CEST 2024


Hello.
I'm running R 4.4.0 on an iMac Venture 13.5.2 .   There appears to be a bug
in as.double().

Create a string with a numeric digits followed by a single letter a thru f
(as tho' it's base 16).

for  K  in (a,b,c,d, and f ) ,  as.double( '123K') returns NA
but as.double('123e') returns 123 -- or whatever the first digit is.

Please let me know if there are additional tests I can try .


thanks
Carl Witthoft

	[[alternative HTML version deleted]]



More information about the R-help mailing list