Learn R Programming

spNetwork (version 0.1.1)

add_center_lines.mc: Add center vertex to lines (multicore)

Description

Add to each line of a SpatialLinesDataFrame an additional vertex at its center with multicore support.

Usage

add_center_lines.mc(lines, show_progress = TRUE, chunk_size = 100)

Arguments

lines

The SpatialLinesDataframe to use

show_progress

A Boolean indicating if a progress bar must be displayed

chunk_size

The size of a chunk used for multiprocessing. Default is 100.

Value

An object of class SpatialLinesDataframe (package sp)

Examples

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

Run the code above in your browser using DataLab