Displaying 3 results from an estimated 3 matches for "expression2coef".
2017 Jul 06
2
attributes on symbols
The multcomp package has code in multcomp:::expression2coef that attaches
the 'coef' attribute to symbols. Since there is only one symbol object in
a session with a given name, this means that this attaching has a global
effect. Should this be quietly allowed or should there be a warning or an
error?
E.g.,
str(quote(Education))
# symbol Educatio...
2017 Aug 11
1
attributes on symbols
...simpler example:
>
>> ex <- as.name("a")
>> attr(ex, "test") <- 1
>> quote(a)
> a
> attr(,"test")
> [1] 1
>
> Torsten
>
> On Thu, 6 Jul 2017, William Dunlap wrote:
>
>> The multcomp package has code in multcomp:::expression2coef that
>> attaches the 'coef' attribute to
>> symbols. Since there is only one symbol object in a session with a
>> given name, this means that
>> this attaching has a global effect. Should this be quietly allowed
>> or should there be a warning or
>>...
2017 Jul 07
0
attributes on symbols
Here is a simpler example:
> ex <- as.name("a")
> attr(ex, "test") <- 1
> quote(a)
a
attr(,"test")
[1] 1
Torsten
On Thu, 6 Jul 2017, William Dunlap wrote:
> The multcomp package has code in multcomp:::expression2coef that attaches the 'coef' attribute to
> symbols.? Since there is only one symbol object in a session with a given name, this means that
> this attaching has a global effect.? Should this be quietly allowed or should there be a warning or
> an error?
> E.g.,
>
> str(quote(...