Learn R Programming

cartograflow (version 1.0.0)

flowjointure: Create a spatial join with flow

Description

Create an attribute spatial join between a flow dataset table and a map background

Usage

flowjointure(tab, fdc, code)

Arguments

tab

the input flow dataset table in long format

fdc

the map background file, ie. a shapefile

code

the ID of the spatial units in the map background

Value

Resulting jointure table between flow dataset and map background

Examples

Run this code
# NOT RUN {
library(cartograflow)
data(flowdata)
bkg<- system.file("shape/MGP_TER.shp", package="cartograflow",
                   lib.loc = NULL, mustWork = TRUE)
tabflow<-flowjointure(flows,bkg,"EPT_NUM")
# }

Run the code above in your browser using DataLab