search for: nondate

Displaying 2 results from an estimated 2 matches for "nondate".

Did you mean: mondate
2019 Mar 27
0
Discrepancy between is.list() and is(x, "list")
...pposedly is of that class. > x = "not a date" > class(x) = "Date" > is(x, "Date") [1] TRUE > y = Sys.Date() > y [1] "2019-03-26" > attr(y, "class") [1] "Date" > is.object(y) [1] TRUE > class(y) = "NonDate" > y [1] 17981 attr(,"class") [1] "NonDate" > is(y, "Date") [1] FALSE > inherits(y, "Date") [1] FALSE > And two, because class definitions can exist outside the code itself. > e.g. As part of an object oriented model. > (Bein...
2019 Mar 27
2
Discrepancy between is.list() and is(x, "list")
> you had seemed to be presenting it as something new in 3.5.3. I would be surprised if the behavior doesn't go all the way back to whenever head.function was added. My bad. I'm just surprised I've never noticed these problems before. > S3 classes have no formal definitions at all > I'm not sure what is clear about that, or what class hierarchy you're talking about