You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@arunsrinivasan, @mattdowle today I had a look into this.
Seems Strto*() functions family from fread.c should care about na.strings parameter. As of now the only one case is handled - "NA" strings. And the way this case handled is not very agile.
if (lch==start&&lch<eof-1&&*lch++=='N'&&*lch++=='A'&& (lch==eof||*lch==sep||*lch==eol)) {
ch=lch;
u.d=NA_REAL;
return(TRUE);
}
If you agree that this is work for these functions (not just post-processing at the end readfile() function ) , I have ideas how to fix this.
Activity
arunsrinivasan commentedon Mar 16, 2015
:bump:
dselivanov commentedon Jul 14, 2015
@arunsrinivasan, @mattdowle today I had a look into this.
Seems
Strto*()functions family from fread.c should care aboutna.stringsparameter. As of now the only one case is handled -"NA"strings. And the way this case handled is not very agile.If you agree that this is work for these functions (not just post-processing at the end
readfile()function ) , I have ideas how to fix this.arunsrinivasan commentedon Sep 7, 2015
Thanks again for the excellent fix @dselivanov. Opened another issue, #1314, for
na.strings="-999"like cases.