Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Read in a flat file, space delimited, NaNs as "."
Replies: 2   Last Post: Aug 7, 2012 12:35 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Tyler

Posts: 79
Registered: 7/20/08
Read in a flat file, space delimited, NaNs as "."
Posted: Jan 23, 2012 7:30 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi Everyone:

I am having some difficulty trying to read in a file with the
following entries (actually a flat file produced by SAS). Note that
SAS writes "." instead of NaN for null values. There is no header and
I cannot edit the files on disk to replace the nulls appropriately.

Here is an example:

XXX1LZ1 2.66923195712975
XXX1NS1 -.42258512166855
XXX1OT1 0.03028640299762
XXX1PF1 .
XXX1UG1 -.09154710877974
XXX1W51 .
XXX1X31 .
XXX24N1 .
XXX28Z1 .
XXXAAC1 0.83949752862828
XXXAAH1 0.79328676386255


Honestly, any help is appreciated.

Cheers,

t.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.