as.SpatialLinesDataFrame {epiflows} | R Documentation |
Convert to SpatialLinesDataFrame class
Description
Convert to SpatialLinesDataFrame class
Usage
as.SpatialLinesDataFrame(x)
## S3 method for class 'epiflows'
as.SpatialLinesDataFrame(x)
Arguments
x |
an epiflows object |
Value
an object of class [sp::SpatialLinesDataFrame]
Examples
data("Brazil_epiflows")
data("YF_coordinates")
ef <- add_coordinates(Brazil_epiflows, YF_coordinates[-1])
ef2 <- epicontacts::thin(ef[j = c("Espirito Santo", "Italy"), contacts = "both"])
as.SpatialLinesDataFrame(ef2)
[Package epiflows version 0.2.1 Index]