[R] [bug] Follow up: paste doesn't...

Thomas Lumley tlumley at u.washington.edu
Thu Dec 6 17:34:01 CET 2001


On Thu, 6 Dec 2001, Michaell Taylor wrote:

>
> Bingo.  The object did come from a stata dataset originally, though it was
> transformed a few ways since being read in.
>
> Saving it as an R object and reloading fixed the problem.  There must be a
> glitch in the foreign library.
>

There was. There isn't any more (well, there isn't *that* particular
glitch).  In principle an internal routine could use either Rf_length() or
strlen() to work out the length of a string. read.dta was giving strings
where Rf_length was the field width and strlen was the actual string
length, so things got confused.


	-thomas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list