s4
How to properly document S4 class slots using Roxygen2?
For documenting classes with roxygen(2), specifying a title and description/details appears to be the same as for functions, methods, data, etc. However, slots and inheritance are their own sort of an[详细]
2023-04-04 01:46 分类:问答dispatching S4 methods with an expression as argument
I\'m trying to convince an S4 method to use an expression as an argument, but I always get an error returned. A trivial example that illustrates a bit what I\'m trying to do here :[详细]
2023-03-27 09:02 分类:问答Is there a way to initialize a S4 object so that another object will be returned?
I have a class hierarchy with the superclass fb of which no objects should exist (I tried virtual classes but ran in the problem that you can not initialize objects from virtual classes). Further, I h[详细]
2023-03-22 11:06 分类:问答class in R: S3 vs S4
I want to create a class in R, should I use S3 or S4 class? I 开发者_如何学运维read a lot of different things about them, is there one superior to the other one?S3 can only dispatch on it\'s first ar[详细]
2023-03-15 07:23 分类:问答How do I show the source code of an S4 function in a package?
I used the packages topGO in R to analyze gene enrichment with the following code: sampleGOdata <- new(\"topGOdata\", description = \"Simple session\", ontology = \"BP\",[详细]
2023-03-04 19:37 分类:问答Which packages make good use of S4 objects?
Which R packages make good use of S4 classes? I\'m looking for packages that use S4 appropriately (i.e. when the complexity of the underlying problem demands), are well written and well documented (so[详细]
2023-02-20 09:05 分类:问答Simultaneously updating object and returning value in S4 classes
I need to write one method that simultaneously updates an object and returns a value.I want to know if there is a way to do this in S4 classes.The context for this is that I am trying to write an S4 c[详细]
2023-02-20 09:04 分类:问答Error Handling with S4 classes
I\'m a newbie here.I am trying to use S4 classes.In some of my setting methods, I would like to take an input value and test if it is valid.If it is valid, I would like to assign it.If it is not valid[详细]
2023-02-19 02:57 分类:问答S4 class in R for matrix
This is a follow-up question to a previous post. I need to write an initialize() method for a S4 class (named Band) that expects a matrix and a value for k. It should be defined as a function with fo[详细]
2023-02-14 18:46 分类:问答R: what are Slots?
Does anyone know what a slot is in R? I did not find the explanation of its meaning. I get a recursive definition:[详细]
2023-02-05 15:30 分类:问答