make_data_object: Make the Data Object

Description Usage Arguments Value

View source: R/make_data_object.R

Description

Make the Data Object

Usage

1
make_data_object(formula, xcoord, ycoord, tcoord, data, h_options)

Arguments

formula

A formula of the form y ~ x, where y is the response variable and x are the predictor variables.

xcoord

A character vector specifying the column name of the x-coordinate variable in data.

ycoord

A character vector specifying the column name of the y-coordinate variable in data.

tcoord

A character vector specifying the column name of the t-coordinate (time) variable in data.

data

A data object containing all necessary variables.

h_options

A list containing options to compute distances if response, xcoord, ycoord, and tcoord are provided. Named arguments are

h_t_distmetric

The temporal distance matrix (defaults to "euclidean").

h_s_distmetric

The spatial distance matrix (defaults to "euclidean").

Value

A list with relevant data ordering information.


michaeldumelle/DumelleEtAl2021STLMM documentation built on Dec. 21, 2021, 5:56 p.m.