slice | R Documentation |
This doesn't create a copy, it provides a child class that
points to a contiguous subvector of a gpuVector
or
vclVector
. Non-contiguous slices are currently not supported.
slice(object, start, end)
## S4 method for signature 'gpuVector,integer,integer'
slice(object, start, end)
## S4 method for signature 'vclVector,integer,integer'
slice(object, start, end)
object |
A |
start |
An integer indicating the start of slice |
end |
An integer indicating the end of slice |
This function allows a user to create a gpuR vector object that references a continuous subset of columns and rows of another gpuR vector object without a copy.
NOTE - this means that altering values in a vector slice object will alter values in the source vector.
A gpuVectorSlice
or vclVectorSlice
object.
Charles Determan Jr.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.