Displaying 20 results from an estimated 21 matches for "showclass".
Did you mean:
showcase
2016 Mar 18
2
unary class union of an S3 class
Hi,
Short story
-----------
setClassUnion("ArrayLike", "array")
showClass("ArrayLike") # no slot
setClass("MyArrayLikeConcreteSubclass",
contains="ArrayLike",
representation(stuff="ANY")
)
showClass("MyArrayLikeConcreteSubclass") # 2 slots!!
That doesn't seem right.
Long story
----------
S...
2016 Mar 19
2
unary class union of an S3 class
...wrote:
>
> On Fri, Mar 18, 2016 at 2:53 PM, Herv? Pag?s <hpages at fredhutch.org
> <mailto:hpages at fredhutch.org>> wrote:
>
> Hi,
>
> Short story
> -----------
>
> setClassUnion("ArrayLike", "array")
>
> showClass("ArrayLike") # no slot
>
> setClass("MyArrayLikeConcreteSubclass",
> contains="ArrayLike",
> representation(stuff="ANY")
> )
>
> showClass("MyArrayLikeConcreteSubclass") # 2 slots!!
&g...
2016 Mar 18
0
unary class union of an S3 class
On Fri, Mar 18, 2016 at 2:53 PM, Herv? Pag?s <hpages at fredhutch.org> wrote:
> Hi,
>
> Short story
> -----------
>
> setClassUnion("ArrayLike", "array")
>
> showClass("ArrayLike") # no slot
>
> setClass("MyArrayLikeConcreteSubclass",
> contains="ArrayLike",
> representation(stuff="ANY")
> )
>
> showClass("MyArrayLikeConcreteSubclass") # 2 slots!!
>
> That doesn't...
2016 Mar 19
2
unary class union of an S3 class
...t; <mailto:hpages at fredhutch.org <mailto:hpages at fredhutch.org>>> wrote:
>
> Hi,
>
> Short story
> -----------
>
> setClassUnion("ArrayLike", "array")
>
> showClass("ArrayLike") # no slot
>
> setClass("MyArrayLikeConcreteSubclass",
> contains="ArrayLike",
> representation(stuff="ANY")
> )
>
> showClass("MyAr...
2016 Mar 19
0
unary class union of an S3 class
...2:53 PM, Herv? Pag?s <hpages at fredhutch.org
>> <mailto:hpages at fredhutch.org>> wrote:
>>
>> Hi,
>>
>> Short story
>> -----------
>>
>> setClassUnion("ArrayLike", "array")
>>
>> showClass("ArrayLike") # no slot
>>
>> setClass("MyArrayLikeConcreteSubclass",
>> contains="ArrayLike",
>> representation(stuff="ANY")
>> )
>>
>> showClass("MyArrayLikeConcreteSu...
2007 Oct 02
2
pairlist objects
Hi,
?pairlist gives no explanation about what exactly is the difference
between a pairlist and a list (except that a pairlist of length 0
is 'NULL'). So, what's a pairlist?
class(.Options)
[1] "pairlist"
Some strange things about the "pairlist" type:
> showClass("pairlist")
Error in getClass(Class) : "pairlist" is not a defined class
Why the above doesn't work? It works for "list":
> showClass("list")
No Slots, prototype of class "list"
Extends: "vector"
> is.list(.Options...
2016 Mar 19
0
unary class union of an S3 class
...<mailto:hpages at fredhutch.org>>>
>> wrote:
>>
>> Hi,
>>
>> Short story
>> -----------
>>
>> setClassUnion("ArrayLike", "array")
>>
>> showClass("ArrayLike") # no slot
>>
>> setClass("MyArrayLikeConcreteSubclass",
>> contains="ArrayLike",
>> representation(stuff="ANY")
>> )
>>
>>...
2006 Oct 26
2
S4 pb in R 2.5.0
Hi,
When playing interactively with the S4 system, I've tried
to define the following class:
> setClass("A", representation("integer"))
[1] "A"
> showClass("A")
Slots:
Name: .Data
Class: integer
Extends:
Class "integer", from data part
Class "vector", by class "integer", distance 2
Class "numeric", by class "integer", distance 2
t...
2007 Sep 27
0
Virtual class with no slots
...i,
It seems there are 2 slightly different ways to create a virtual
class with no slots (a kind of Java "interface"): with or without
specifying 'representation("VIRTUAL")'.
> setClass("A", representation("VIRTUAL"))
[1] "A"
> showClass("A")
Virtual Class
No Slots, prototype of class "S4"
> setClass("B")
[1] "B"
> showClass("B")
Virtual Class
No Slots, prototype of class "NULL"
Note that:
- R automatically decided to make B virtual, a strange d...
2010 May 20
1
getSubClasses()?
Hi,
Is there a built in function that returns a character vector of all subclasses of a given superclass?
showClass(Class = "SomeClass") contains the info that I want, but I don't know how to access it.
getSubClasses <- function(superClass) return(setdiff(getClasses(.GlobalEnv), superClass)) wíll only work if the global enviroment isn;t filled with other class definitions.
I've seen functio...
2007 Sep 25
1
'load' does not properly add 'show' methods for classes extending 'list'
The GeneSetCollection class in the Bioconductor package GSEABase
extends 'list'
> library(GSEABase)
> showClass("GeneSetCollection")
Slots:
Name: .Data
Class: list
Extends:
Class "list", from data part
Class "vector", by class "list", distance 2
Class "AssayData", by class "list", distance 2
If I create an instance of this class a...
2015 May 12
2
Unexpected failure when calling new() with unnamed arg and
...'c' can be fixed:
c at design <- formula(NULL)
validObject(c)
# [1] TRUE
Maybe something that the default "initialize" method should take care
of?
Another singularity that is maybe at the root of all of this is that
the "formula" S4 class is virtual:
showClass("formula")
# Virtual Class "formula" [package "methods"]
#
# Slots:
#
# Name: .S3Class
# Class: character
#
# Extends: "oldClass"
so a bare call to new("formula") fails:
new("formula")
# Error in new("...
2015 May 13
2
Unexpected failure when calling new() with unnamed arg and
...alidObject(c)
>> # [1] TRUE
>
>> Maybe something that the default "initialize" method should take care
>> of?
>
>> Another singularity that is maybe at the root of all of this is that
>> the "formula" S4 class is virtual:
>
>> showClass("formula")
>> # Virtual Class "formula" [package "methods"]
>> #
>> # Slots:
>> #
>> # Name: .S3Class
>> # Class: character
>> #
>> # Extends: "oldClass"
>
>> so a bare...
2015 Oct 08
1
Unexpected failure when calling new() with unnamed arg and
...ake care
>>>> of?
>>>>
>>>
>>> Another singularity that is maybe at the root of all of
>>> this is that
>>>> the "formula" S4 class is virtual:
>>>>
>>>
>>> showClass("formula")
>>>> # Virtual Class "formula" [package "methods"]
>>>> #
>>>> # Slots:
>>>> #
>>>> # Name: .S3Class # Class: character
>>>> #
>>>> # Extends: &qu...
2006 Jul 04
1
lmer print outs without T
Hi,
I have been having a tedious issue with lmer models with lots of
factors and lots of levels. In order to get the basic information at
the beginning of the print out I also have to generate these enormous
tables as well. Is there a method command to leave off all of the
effects and correlations? Or, do I have to go to string commands?
2006 Dec 19
1
preserving sparse matrices (Matrix)
Hi,
I have sparse (tridiagonal) matrices, and I use the Matrix package for
handling them. For certain computations, I need to either set the
first row to zero, or double the last row. I find that neither
operation preserves sparsity, eg
> m <- Diagonal(5)
> m
5 x 5 diagonal matrix of class "ddiMatrix"
[,1] [,2] [,3] [,4] [,5]
[1,] 1 . . . .
[2,] . 1
2006 Jul 24
1
conflict of package "Matrix" and summary of lme object
After loading the package "Matrix" (version 0.995-12), using the summary
function with an lme (package nlme version 3.1-75) object results in an
error message saying
Fehler in dim(x) : kein Slot des Namens "Dim" f?r dieses Objekt der
Klasse "correlation"
(translated: 'Error in dim(x) : no slot of the name "Dim" for this
object of class
2015 May 13
0
Unexpected failure when calling new() with unnamed arg and
...design <- formula(NULL)
> validObject(c)
> # [1] TRUE
> Maybe something that the default "initialize" method should take care
> of?
> Another singularity that is maybe at the root of all of this is that
> the "formula" S4 class is virtual:
> showClass("formula")
> # Virtual Class "formula" [package "methods"]
> #
> # Slots:
> #
> # Name: .S3Class
> # Class: character
> #
> # Extends: "oldClass"
> so a bare call to new("formula") fails:
>...
2015 Oct 08
0
Unexpected failure when calling new() with unnamed arg and
...>> Maybe something that the default "initialize" method should take care
>>> of?
>>>
>>
>> Another singularity that is maybe at the root of all of this is that
>>> the "formula" S4 class is virtual:
>>>
>>
>> showClass("formula")
>>> # Virtual Class "formula" [package "methods"]
>>> #
>>> # Slots:
>>> #
>>> # Name: .S3Class
>>> # Class: character
>>> #
>>> # Extends: "oldCla...
2009 Apr 17
0
R 2.9.0 is released
...ss to the
internal part of sample() (sampling from seq_len(n)).
o New version of withVisible() for better handling of cases like
withVisible(eval.parent(....)). Moved to package 'base' with a
view to replace .Internal(eval.with.vis) in source() later.
o showClass() which is also used to auto-print class definitions, now
mentions the package where the class comes from, if there is one.
o simulate(obj) now also works for "glm" objects and for weighted
fits, thanks in part to contributions from Ben Bolker and
Heather Tu...