Description Usage Arguments See Also Examples
When subsetting a vector by "[", all annotations (e.g., label and unit of measurement) are preserved.
1 2 3 4 5 6 7 8 9 10 11 | ## S4 method for signature 'annotated_vector'
x[i]
## S4 method for signature 'annotated_named_vector'
x[i]
## S4 method for signature 'annotated_factor'
x[i]
## S4 method for signature 'annotated_named_factor'
x[i]
|
x |
The annotated_vector object to be subsetted. |
i |
An index specifying elements to extract or replace. |
base::'['
1 2 | a <- new("annotated_numeric", .Data = 1:4)
test <- a[1:2]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.