> I think that it would be better to handle factors, character predictors, and
> logical predictors consistently.
"logical predictors" can be regarded as categorical or continuous (i.e. 0 or 1).
And the model matrix should be the same, either way.
I think the first question to be asked is, which
Prior to R-3.6.0 the keys in the lazyload key files, e.g.
pkg/data/Rdata.rdx or pkg/R/pkg.rdx, seemed to all be 2-long integer
vectors. Now they can be lists. The ones I have seen have two components,
"eagerKey" is a 2-long integer vector and "lazyKeys" is a named list of
2-long integer vectors.
Dear R-devel list members,
I've discovered an inconsistency in how lm() and similar functions handle
logical predictors as opposed to factor or character predictors. An "lm" object
for a model that includes factor or character predictors includes the levels of
a factor or unique values of a cha
...and 14955, which seems to have the explanation (but was marked as
closed/fixed??). The parser does list '?' as lower precedence than '=', but
'='-assignments are not normal 'expr's which can appear as arguments to '?'.
(Presumably because of named arguments: f(a=b) differs from f(a<-b).)
O
See also: https://bugs.r-project.org/bugzilla/show_bug.cgi?id=16710
On Fri, Aug 30, 2019 at 9:02 AM William Dunlap via R-devel
wrote:
>
> Precedence is a property of the parser and has nothing to do with the
> semantics assigned to various symbols. Using just core R functions you can
> see the p
Precedence is a property of the parser and has nothing to do with the
semantics assigned to various symbols. Using just core R functions you can
see the precedence of '?' is between those of '=' and '<-'.
> # '=' has lower precedence than '?'
> str(as.list(parse(text="a ? b = c")[[1]]))
List of 3
> From: R-devel [mailto:r-devel-boun...@r-project.org] On Behalf Of Ant F
> Sent: 29 August 2019 12:06
> To: r-devel@r-project.org
> Subject: [Rd] ?Syntax wrong about `?`'s precedence ?
> ...
> See the following example :
>
> `?` <- `+`
I'm curious; What did you expect to happen if you replac