Page 1 of 1
Writing NAs
Posted: Wed Mar 06, 2013 1:02 pm
by startz
It would be useful if there were the ability to control how NAs are written to text files, for example "NAN" rather than "NA." While I guess one could do a recode into an alpha, something more direct would be nice.
Re: Writing NAs
Posted: Wed Mar 06, 2013 4:10 pm
by EViews Glenn
wfsave(type=text) test.txt na="hi_mom"
Re: Writing NAs
Posted: Wed Mar 06, 2013 4:13 pm
by startz
Cool.
Uh, is there a spot in the docs that I can read about this?
Re: Writing NAs
Posted: Wed Mar 06, 2013 5:56 pm
by EViews Glenn
Yes, that's how I found the option. Both the wfsave and pagesave entries note that all of the options for the specification in wfopen are applicable.
"See wfopen for details on the syntax of source_descriptions and table_descriptions."
Under the Text and Binary Files section of the wfopen command, I found the entry
"na="arg1"", text used to represent observations that are missing from the file. The text should be enclosed in double quotes.
Re: Writing NAs
Posted: Wed Mar 06, 2013 7:19 pm
by startz
Thankee.