preserve old (pre 3.1.0) type.convert behavior

后端 未结 3 2098
天命终不由人
天命终不由人 2021-01-04 02:28

R 3.1.0 is out and one of the new features is the following:

type.convert() (and hence by default read.table()) returns a ch

3条回答
  •  梦毁少年i
    2021-01-04 02:53

    Since I don't have rep to comment on Brian Diggs's response - for future reference, the new argument is now called "numerals" (not "exact"). From http://cran.r-project.org/bin/windows/base/NEWS.R-3.1.0patched.html:

    type.convert(), read.table() and similar read.*() functions get a new numerals argument, specifying how numeric input is converted when its conversion to double precision loses accuracy. The default numerals = "allow.loss" allows accuracy loss, as in R versions before 3.1.0.

提交回复
热议问题