Displaying 1 result from an estimated 1 matches for "listout".
Did you mean:
listopt
2010 Jun 09
0
Documenting generic S4 replacement method for package building
...'ve created a S4 method "lows" via
setGeneric("lows", function(object) standardGeneric("lows"))
setGeneric("lows<-", function(object, value) standardGeneric("lows<-"))
setMethod("lows", "myClass", function(object)
{
listOut = vector(mode = "list")
for(i in names(factors(object)))
{
listOut[i] = low(object at factors[[i]])
}
return(listOut)
}
)
setReplaceMethod("lows", "myclass", function(object,value)
{
for(i in seq(along = object at factors))
{
low(object at factors...