stp {stopp}R Documentation

Create stp and stlp objects for point patterns storage

Description

This function creates a stp object as a dataframe with three columns: x, y, and t. If also the linear network L, of class linnet, is provided, a stlp object is created instead.

Usage

stp(df, L)

Arguments

df

A matrix with three columns, containing to two space and the temporal coordinates

L

Optional. The linear network of class linnet. If provided, the function returns a stlp object.

Value

An stp or stlpp object, depending on whether or not an object of class linnet is provided for the L argument.

Author(s)

Nicoletta D'Angelo

See Also

summary.stp, print.stp, plot.stp

stppm, print.stp, summary.stp, plot.stp, print.stlp, summary.stlp, plot.stlp

Examples


set.seed(2)
df <- data.frame(runif(100), runif(100), runif(100))

stp1 <- stp(df)

set.seed(2)                       
df_net <- data.frame(runif(100, 0, 0.85), runif(100, 0, 0.85), runif(100))

stlp1 <- stp(df_net, L = chicagonet)



[Package stopp version 0.2.3 Index]