Description Usage Arguments Value See Also Examples
Get or set the type of an object.
Note that type
and type<-
are defined as S4 generic
functions and what type means exactly (and what type()
returns) depends on the objects for which type
and/or type<-
methods are defined.
1 2 |
x |
Any object for which the |
value |
The type to set on |
type(x)
returns the type of x
, typically (but not necessarily)
as a single string (i.e. as a character vector of length 1).
showMethods
for displaying a summary of the
methods defined for a given generic function.
selectMethod
for getting the definition of
a specific method.
type,ANY-method in the DelayedArray
package for the default type
method.
type,PairwiseAlignments-method in the
Biostrings package for an example of a specific
type
method (defined for PairwiseAlignments
objects).
BiocGenerics for a summary of all the generics defined in the BiocGenerics package.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | type
showMethods("type")
`type<-`
showMethods("type<-")
library(DelayedArray)
showMethods("type")
selectMethod("type", "ANY") # the default "type" method
library(Biostrings)
showMethods("type")
## The type() method for PairwiseAlignments objects:
selectMethod("type", "PairwiseAlignments")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.