Learn R Programming

spNetwork (version 0.1.1)

lines_direction: Unify lines direction

Description

A function to deal with the directions of lines.

Usage

lines_direction(lines, field)

Arguments

lines

A SpatialLinesDataFrame

field

Indicate a field giving informations about authorized traveling direction on lines. if NULL, then all lines can be used in both directions. Must be the name of a column otherwise. The values of the column must be "FT" (From - To), "TF" (To - From) or "Both".

Value

A SpatialLinesDataFrame

Examples

Run this code
# NOT RUN {
#This is an internal function, no example provided
# }

Run the code above in your browser using DataLab