search for: ttxt

Displaying 2 results from an estimated 2 matches for "ttxt".

Did you mean: txt
2019 Apr 05
0
[EXTERNAL] Re: Re: all.equal failure
...-devel version of it that ignores attributes: > all.equal.language function (target, current, ...) { mt <- mode(target) mc <- mode(current) if (mt == "expression" && mc == "expression") return(all.equal.list(target, current, ...)) ttxt <- paste(deparse(target), collapse = "\n") ctxt <- paste(deparse(current), collapse = "\n") msg <- c(if (mt != mc) paste0("Modes of target, current: ", mt, ", ", mc), if (ttxt != ctxt) { if (pmatch(ttxt, ctxt, 0L)) "t...
2019 Apr 05
6
all.equal failure
This arose in testing [.terms and has me confused. data(esoph)?? # use a standard data set t0x <- terms(model.frame( ~ tobgp, data=esoph)) t1 <-? terms(model.frame(ncases ~ agegp + tobgp, data=esoph)) t1x <- (delete.response(t1))[-1] > all.equal(t0x, t1x) [1] TRUE # the above is wrong, because they actually are not the same > all.equal(attr(t0x, 'dataClasses'),