| stp | R Documentation |
stp and stlp objects for point patterns storageThis 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.
stp(df, L)
df |
A matrix with three columns, containing to two space and the temporal coordinates |
L |
Optional. The linear network of class |
An stp or stlpp object, depending on whether or not an object of class
linnet is provided for the L argument.
Nicoletta D'Angelo
summary.stp, print.stp, plot.stp
stppm, print.stp, summary.stp, plot.stp, print.stlp, summary.stlp, plot.stlp
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.