Re: [R] evil attributes

2021-04-12 Thread Viechtbauer, Wolfgang (SP)
>-Original Message- >From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] >Sent: Monday, 12 April, 2021 1:58 >To: Viechtbauer, Wolfgang (SP); R-help >Subject: Re: [R] evil attributes > >On 11/04/2021 2:46 p.m., Viechtbauer, Wolfgang (SP) wrote: >> The is.vector

Re: [R] evil attributes

2021-04-11 Thread Bill Dunlap
Terry wrote I confess to being puzzled WHY the R core has decided on this definition [of vector] ... I believe that "R core" followed S's definition of "vector". From the beginning (at least when I first saw it in 1981) an S vector was the basic unit of an S object - it had a type and a

Re: [R] evil attributes

2021-04-11 Thread Duncan Murdoch
On 11/04/2021 2:46 p.m., Viechtbauer, Wolfgang (SP) wrote: The is.vector() thing has also bitten me in the behind on a few occasions. When I want to check if something is a vector, allow for it to possibly have some additional attributes (besides names) that would make is.vector() evaluate to

Re: [R] evil attributes

2021-04-11 Thread David Winsemius
-help Sent: Saturday, 10 April, 2021 16:12 To: R-help Subject: Re: [R] evil attributes I wrote: "I confess to being puzzled WHY the R core has decided on this definition..." After just a little more thought let me answer my own question. a. The as.vector() function is designed to strip

Re: [R] evil attributes

2021-04-11 Thread Viechtbauer, Wolfgang (SP)
On Behalf Of Therneau, Terry >M., Ph.D. via R-help >Sent: Saturday, 10 April, 2021 16:12 >To: R-help >Subject: Re: [R] evil attributes > >I wrote: "I confess to being puzzled WHY the R core has decided on this >definition..." >After just a little more thought l

Re: [R] evil attributes

2021-04-11 Thread Therneau, Terry M., Ph.D. via R-help
I wrote: "I confess to being puzzled WHY the R core has decided on this definition..." After just a little more thought let me answer my own question. a. The as.vector() function is designed to strip off everything extraneous and leave just the core.   (I have a mental image of Jack Webb saying