Open Spen-D opened 10 months ago
Hi @Spen-D,
Thank you very much for bringing this to my attention. The error has now been corrected. An updated version of the package should be available online within the next couple of days. In the meantime, you can install the developmental version of the package.
Additionally, please be aware that the parameter previously named 'resistance_feat' has been renamed to 'restriction_feat'.
Again, thanks for your interest in the package. MA
I was following an online guide (https://cran.r-project.org/web/packages/stppSim/vignettes/stppSim-vignette.html) and when running the code below it returns an error saying the object event_Collate is not found.
load the data
load(file = system.file("extdata", "camden.rda", package="stppSim"))
boundary <- camden$boundary # get boundary data
specifying data sizes
pt_sizes = c(200, 1000, 2000)
simulate data
artif_stpp <- psim_artif(n_events=pt_sizes, start_date = "2021-01-01", poly=boundary, n_origin=50, resistance_feat = NULL, field = NA, n_foci=5, foci_separation = 10, mfocal = NULL, conc_type = "dispersed", p_ratio = 20, s_threshold = 50, step_length = 20, trend = "stable", fpeak=NULL, slope = NULL,show.plot=FALSE, show.data=FALSE)
If you could help me resolve it would be greatly appreciated! Thank you