## Create local temporary copy of MiddleFork04.ssn found in
## the SSN2 package. Only necessary for this example.
copy_lsn_to_temp()
# Import the SSN object with prediction points, pred1km
mf04<- ssn_import(
paste0(tempdir(), "/MiddleFork04.ssn"),
predpts = c("pred1km"),
overwrite = TRUE
)
# Recalculate the netgeom column for the observed sites
sf_obs <- create_netgeom(
mf04$obs,
type = "POINT",
overwrite = TRUE
)
# Recalculate the netgeom column for the edges
sf_edges <- create_netgeom(
mf04$edges,
type = "LINESTRING",
overwrite = TRUE
)
Run the code above in your browser using DataLab