Displaying 4 results from an estimated 4 matches for "framerowlabels".
2011 Jul 07
1
Simple inheritance check fails (integer from numeric)
...es
state 'numeric' as one of the superclasses. Isn't that somewhat
inconsistent?
> getClass("integer")
Class "integer" [package "methods"]
No Slots, prototype of class "integer"
Extends: "numeric", "vector", "data.frameRowLabels"
> a <- 1:3
> class(a)
[1] "integer"
> inherits(a, "numeric")
[1] FALSE
Regards,
Janko
2009 Apr 01
2
Assignment to string
The documentation for assignment says:
In all the assignment operator expressions, 'x' can be a name or
an expression defining a part of an object to be replaced (e.g.,
'z[[1]]'). A syntactic name does not need to be quoted, though it
can be (preferably by backticks).
But the implementation allows assignment to a character string (i.e. not a
name), which it
2010 Jan 20
1
Unclear documentation on 'numeric' and 'integer' (R-lang.pdf)
R-lang.pdf has the following description in Section 3.1.1.
"""
Any number typed directly at the prompt is a constant and is evaluated.
> 1
[1] 1
Perhaps unexpectedly, the number returned from the expression 1 is a
numeric. In most
cases, the difference between an integer and a numeric value will be
unimportant as R will
do the right thing when using the numbers.
2019 Jan 24
0
Possible setClassUnion Unloading Issue
...## to character
detach('package:testpkg', unload=TRUE)
getClassDef('character')
## Class "character" [package "methods"]
##
## No Slots, prototype of class "character"
##
## Extends: "vector", "data.frameRowLabels", "SuperClassMethod",
"chrOrNULL"
##
## Known Subclasses:
## Class "signature", from data part
## Class "className", from data part
## Class "ObjectsWithPackage", from data part
## `validObject` now fails:
v...