Re: [Rd] binary form of is() contradicts its unary form

2017-11-30 Thread Iñaki Úcar
2017-11-30 3:14 GMT+01:00 Suzen, Mehmet : > My understanding is that there is no inconsistency. `is` does what it > claims, from the documentation: > > ‘is’: With two arguments, tests whether ‘object’ can be treated as > from ‘class2’. > > With one argument, returns all the supe

Re: [Rd] binary form of is() contradicts its unary form

2017-11-30 Thread Suzen, Mehmet
On 30 November 2017 at 11:37, Iñaki Úcar wrote: > 2017-11-30 3:14 GMT+01:00 Suzen, Mehmet : >> My understanding is that there is no inconsistency. `is` does what it >> claims, from the documentation: >> >> ‘is’: With two arguments, tests whether ‘object’ can be treated as >> from ‘class2

Re: [Rd] binary form of is() contradicts its unary form

2017-11-30 Thread Iñaki Úcar
2017-11-30 13:26 GMT+01:00 Suzen, Mehmet : > On 30 November 2017 at 11:37, Iñaki Úcar wrote: >> 2017-11-30 3:14 GMT+01:00 Suzen, Mehmet : >>> My understanding is that there is no inconsistency. `is` does what it >>> claims, from the documentation: >>> >>> ‘is’: With two arguments, tests whether ‘o

Re: [Rd] binary form of is() contradicts its unary form

2017-11-30 Thread Suzen, Mehmet
On 30 November 2017 at 14:04, Iñaki Úcar wrote: > > Am I supposed to read every reference on a man page just to know what > to expect from a function? > If the reference is from John Chamber, you are supposed to read it. It is not always possible for maintainers to document everything on a man pa

Re: [Rd] binary form of is() contradicts its unary form

2017-11-30 Thread Iñaki Úcar
2017-11-30 14:13 GMT+01:00 Suzen, Mehmet : > On 30 November 2017 at 14:04, Iñaki Úcar wrote: >> >> Am I supposed to read every reference on a man page just to know what >> to expect from a function? >> > > If the reference is from John Chamber, you are supposed to read it. As a joke, it's funny.

Re: [Rd] binary form of is() contradicts its unary form

2017-11-30 Thread Martin Maechler
> Iñaki Úcar > on Thu, 30 Nov 2017 14:32:12 +0100 writes: > 2017-11-30 14:13 GMT+01:00 Suzen, Mehmet : >> On 30 November 2017 at 14:04, Iñaki Úcar wrote: >>> >>> Am I supposed to read every reference on a man page just to know what >>> to expect from a function?

Re: [Rd] binary form of is() contradicts its unary form

2017-11-30 Thread Suzen, Mehmet
On 30 Nov 2017 14:32, "Iñaki Úcar" wrote: >> >> Am I supposed to read every reference on a man page just to know what >> to expect from a function? >> > > If the reference is from John Chamber, you are supposed to read it. As a joke, it's funny. Not a joke. John Chambers is the authority in R

Re: [Rd] binary form of is() contradicts its unary form

2017-11-30 Thread Iñaki Úcar
2017-11-30 15:54 GMT+01:00 Suzen, Mehmet : > > > On 30 Nov 2017 14:32, "Iñaki Úcar" wrote: > >>> >>> Am I supposed to read every reference on a man page just to know what >>> to expect from a function? >>> >> >> If the reference is from John Chamber, you are supposed to read it. > > As a joke, it'

Re: [Rd] binary form of is() contradicts its unary form

2017-11-30 Thread Suzen, Mehmet
On 30 November 2017 at 16:30, Iñaki Úcar wrote: > If you really believe that references should be needed to know what to > expect from a function call, then we work with different definitions A behaviour of a function call might be quite complex depending on the arguments characteristics, it may

[Rd] Bug is as.matrix.data.frame with nested data.frame

2017-11-30 Thread Patrick Perry
Converting a data.frame with a nested data.frame to a matrix fails: x <- structure(list(a = data.frame(letters)), class = "data.frame", row.names = .set_row_names(26)) as.matrix(x) #> Error in ncol(xj) : object 'xj' not found The offending code is here, in the defi