Learn R Programming

geonet (version 0.7.3)

bin_data: Bin Point Pattern on a Geometric Network

Description

bin_data bins the data on the supplied point pattern according to all possible combination of covariates.

Usage

bin_data(X, bins = NULL, vars = NULL, vars_internal = NULL, scale = NULL)

Value

The binned data.

Arguments

X

Point pattern on a geometric network (object of class gnpp)

bins

A list containing the bins of the geometric network.

vars

A character vector containing the name of all covariates in the model.

vars_internal

A character vector containing the name of all interval covariates in the model.

scale

A named list which specifies the rescaling of network related covariates. Currently, internal covariates "x", "y", and "dist2V" can be scaled.