as_data_frame: Coerce to data frame

Description Usage Arguments Details Value

Description

spatPomp objects can be recast as data frames.

Usage

1
2
## S3 method for class 'spatPomp'
as.data.frame(x, ...)

Arguments

x

a spatPomp object.

...

additional arguments to be passed to or from methods.

Details

When object is a simple ‘spatPomp’ object, as(object,"data.frame") or as.data.frame(object) results in a data frame with the times, units, observables, states (if known), and interpolated covariates (if any).

Value

A ‘data.frame’ with columns for time, spatial unit and observations.


spatPomp documentation built on Sept. 5, 2021, 5:35 p.m.