[R] Funny result from rep(...) procedure

Henrik Bengtsson hb at stat.berkeley.edu
Thu Feb 18 19:36:36 CET 2010


On Thu, Feb 18, 2010 at 7:15 PM, Erik Iverson <eriki at ccbr.umn.edu> wrote:
>
>
> Erik Iverson wrote:
>>
>> Cannot reproduce, what is branches?  If you can narrow it down to a
>> "commented, minimal, self-contained, reproducible" example, you're far more
>> likely to get help from the list.
>>
>
> My blinded guess though, is something to do with FAQ 7.31.

Probably, e.g.

branches<-c(5,6);
branches <- branches - 1e-12;

gives the reported output (as expected).

/H
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list