Description Usage Arguments Details Value Author(s) See Also Examples
The function getColumns
is the fundamental function for extraction
of column data from a process data object. Single columns can be
extracted as vectors or multiple columns as lists of vectors.
1 2 3 4 5 6 7 8 9 | ## S4 method for signature 'ProcessData,numeric'
getColumns(object, j, drop = TRUE)
## S4 method for signature 'ProcessData,character'
getColumns(object, j, drop = TRUE)
## S4 method for signature 'ProcessData,logical'
getColumns(object, j, drop = TRUE)
## S4 method for signature 'ProcessData'
x$name
|
object |
a process object extending class |
x |
a process object extending class |
j |
The column(s) to extract. |
drop |
a |
name |
a variable name. |
It is possible to extract single column data by name using the
$
operator or one or multiple columns by index using the
getColumns
function.
The drop argument is primarily provided for programming to ensure that the function always returns a list.
Single columns can, in addition, be extracted using the bracket [
with
the drop
argument equal to TRUE
, cf. the examples
below.
A list of the column values or a single column as a vector.
Niels Richard Hansen, Niels.R.Hansen@math.ku.dk.
MarkedPointProcess
,
ContinuousProcess
,
subset,ProcessData-method
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.