search for: fooclass2

Displaying 4 results from an estimated 4 matches for "fooclass2".

Did you mean: fooclass
2019 Sep 11
2
'==' operator: inconsistency in data.frame(...) == NULL
Dear Martin, On 11/09/2019 09:56, Martin Maechler wrote: > > > I wonder if data.frame(<some non-empty data>) == NULL should also return > > a value instead of an error. R help reads: > > > "At least one of |x| and |y| must be an atomic vector, but > > if the other is a list R attempts to coerce it to the > > type of the atomic
2019 Sep 11
2
'==' operator: inconsistency in data.frame(...) == NULL
...th of 'dimnames' [2] not equal to array extent Best, Hilmar On 11/09/2019 12:24, Hilmar Berger wrote: > Another example where a data.frame is compared to (here non-null, > non-empty) non-atomic values in Ops.data.frame, resulting in an error > message: > > setClass("FOOCLASS2", > ???????? slots = c(M="matrix") > ) > ma = new("FOOCLASS2", M=matrix(rnorm(300), 30,10)) > > > isS4(ma) > [1] TRUE > > ma == data.frame(a=1:3) > Error in eval(f) : dims [product 1] do not match the length of object [3] > > As for the N...
2019 Sep 11
0
'==' operator: inconsistency in data.frame(...) == NULL
Another example where a data.frame is compared to (here non-null, non-empty) non-atomic values in Ops.data.frame, resulting in an error message: setClass("FOOCLASS2", ???????? slots = c(M="matrix") ) ma = new("FOOCLASS2", M=matrix(rnorm(300), 30,10)) > isS4(ma) [1] TRUE > ma == data.frame(a=1:3) Error in eval(f) : dims [product 1] do not match the length of object [3] As for the NULL/logical(0) cases I would suggest to expli...
2019 Sep 14
0
'==' operator: inconsistency in data.frame(...) == NULL
...extent > > Best, > Hilmar > > > On 11/09/2019 12:24, Hilmar Berger wrote: >> Another example where a data.frame is compared to (here non-null, >> non-empty) non-atomic values in Ops.data.frame, resulting in an error >> message: >> >> setClass("FOOCLASS2", >> ???????? slots = c(M="matrix") >> ) >> ma = new("FOOCLASS2", M=matrix(rnorm(300), 30,10)) >> >> > isS4(ma) >> [1] TRUE >> > ma == data.frame(a=1:3) >> Error in eval(f) : dims [product 1] do not match the length of o...