as.in2extRemesDataObject {in2extRemes}R Documentation

Convert Data Frame Object to in2extRemes Data Object

Description

Convert a data frame, matrix or vector into an object readable by the in2extRemes windows.

Usage

as.in2extRemesDataObject(x)

Arguments

x

data frame, matrix or numeric vector.

Details

Sets up a list object with a data component that contains the datafram x, or if x is a matrix or vector, it is first converted to a data frame using as.data.frame. If x is a vector, an additional column, named “obs”, is added that contains an index of the row number. It is then given the class “in2extRemesDataObject” and returned.

Value

A list of class “in2extRemesDataObject” with component:

data

x as a data frame.

Author(s)

Eric Gilleland

See Also

as.data.frame

Examples


look <- apply(matrix(rnorm(100 * 100), 100, 100), 2, max, na.rm = TRUE)
look2 <- as.in2extRemesDataObject(look)


[Package in2extRemes version 1.0-3 Index]