getName | R Documentation |
Get the name associated with the given object.
getShortName()
: Extracts the short object name
getName(object, ...)
getShortName(object, ...)
## S4 method for signature 'lcMethod'
getName(object, ...)
## S4 method for signature 'NULL'
getName(object, ...)
## S4 method for signature 'lcMethod'
getShortName(object, ...)
## S4 method for signature 'NULL'
getShortName(object, ...)
## S4 method for signature 'lcModel'
getName(object)
## S4 method for signature 'lcModel'
getShortName(object)
object |
The object. |
... |
Not used. |
For lcModel
: The name is determined by its associated lcMethod
name and label, unless specified otherwise.
A nonempty string, as character
.
When implementing your own lcMethod
subclass, override these methods to provide full and abbreviated names.
setMethod("getName", "lcMethodExample", function(object) "example name") setMethod("getShortName", "lcMethodExample", function(object) "EX")
Similar methods can be implemented for your lcModel
subclass,
however in practice this is not needed as the names are determined by default from the lcMethod
object that was used to fit the lcModel
object.
getShortName getLabel
method <- lcMethodLMKM(Y ~ Time)
getName(method) # "lm-kmeans"
method <- lcMethodLMKM(Y ~ Time)
getShortName(method) # "LMKM"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.