Re: [R] extra digits added to data

2011-10-12 Thread Jim Holtman
what are you going to do with the data? If just for presentation, then keep as character. If you are going to compute on the data, then keep as numeric. Since you are using floating point, FAQ 7.31 reminds you that the data "is kept" as inputted to the best that can be done with 54 bits of pr

Re: [R] extra digits added to data

2011-10-11 Thread Mark Harrison
Thanks for the quick response. Read the FAQ. If i want to keep the values in R the same as when inputed should i be converting the data to a different type - i.e. Not numeric? Sent from my iPhone On Oct 11, 2011, at 4:46 AM, Jim Holtman wrote: > FAQ 7.31 > > Sent from my iPad > > On Oct

Re: [R] extra digits added to data

2011-10-11 Thread Jim Holtman
FAQ 7.31 Sent from my iPad On Oct 11, 2011, at 1:07, Mark Harrison wrote: > I am having a problem with extra digits being added to my data which I think > is a result of how I am converting my data.frame data to xts. > > I see the same issue in R v2.13.1 and RStudio version 0.94.106. > > I am

[R] extra digits added to data

2011-10-10 Thread Mark Harrison
I am having a problem with extra digits being added to my data which I think is a result of how I am converting my data.frame data to xts. I see the same issue in R v2.13.1 and RStudio version 0.94.106. I am loading historical foreign exchange data in via csv files or from a sql server database.