Bug 15463 - R.app' data editor rounds some data in a data frame
Summary: R.app' data editor rounds some data in a data frame
Alias: None
Product: R
Classification: Unclassified
Component: Mac GUI / Mac specific (show other bugs)
Version: R 3.0.1
Hardware: x86_64/x64/amd64 (64-bit) Mac OS X v10.8
: P5 normal
Assignee: Simon Urbanek
Depends on:
Reported: 2013-09-19 21:00 UTC by Brennan
Modified: 2014-05-02 14:28 UTC (History)
2 users (show)

See Also:

.csv input data file to recreate issue (1.15 KB, text/csv)
2013-09-19 21:00 UTC, Brennan

Note You need to log in before you can comment on or make changes to this bug.
Description Brennan 2013-09-19 21:00:07 UTC
Created attachment 1487 [details]
.csv input data file to recreate issue

Calling fix() on a data frame seems to be rounding one of the columns (response_a) of the data file attached.  We have only seen this issue in these data.  It does cause important changes in later significance testing.  The issue can be recreated by:

> data <- read.csv("fix_issue_data.csv")
> write.csv(data, file = "post_no_data_fix")
> fix(data)
> write.csv(data, file = "post_data_fix")
Comment 1 Duncan Murdoch 2013-09-28 11:50:49 UTC
I can confirm the problem:  values are displayed with rounding, then changed even if the user never edits anything.

A workaround is to set the "digits" option to a large value, e.g. options(digits=15), before calling fix() or edit() or data.edit() on the dataframe.
Comment 2 Duncan Murdoch 2013-09-28 12:30:05 UTC
This only happens in the R.app data editor, not in X11 or Windows editors.