flowjointure {cartograflow}R Documentation

Builds a spatial join with a flow dataset

Description

Builds a spatial join between a flow dataset and a spatial features layer (as a map background)

Usage

flowjointure(geom, bkg, DF.flow, origin, destination, DF.point, id, x, y)

Arguments

geom

the geometry of the spatial features layer: points or areas

bkg

the spatial features layer

DF.flow

the input flow dataset as a dataframe

origin

the place of origin code

destination

the place of destination code

DF.point

a dataframe of points or places

id

dataframe of points or places file code

x

the X coordinate of the point or places

y

the Y coordinate of the point or places

Value

the corresponding joint table between the flow dataset and the spatial feature layer

Examples

library(cartograflow)
library(sf)
data(flowdata)
map <- st_read(system.file("shape/MGP_TER.shp", package = "cartograflow"))
tabflow <- flowjointure(
  geom = "area", bkg = map, DF.flow = flows, origin = "i", destination = "j",
  id = "EPT_NUM", x = "X", y = "Y"
)

[Package cartograflow version 1.0.5 Index]