getColumns: Extraction of column(s) from a process data object.

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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.

Usage

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

Arguments

object

a process object extending class ProcessData.

x

a process object extending class ProcessData.

j

The column(s) to extract.

drop

a logical. Should a single column be returned as a vector instead of a list of length 1. Default value is TRUE.

name

a variable name.

Details

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.

Value

A list of the column values or a single column as a vector.

Author(s)

Niels Richard Hansen, Niels.R.Hansen@math.ku.dk.

See Also

MarkedPointProcess, ContinuousProcess, subset,ProcessData-method

Examples

1
2
3
4
5

ppstat documentation built on May 2, 2019, 5:26 p.m.