prepare_coordinates: Prepare coordinates file

View source: R/prepare_coordinates.r

prepare_coordinatesR Documentation

Prepare coordinates file

Description

This function allows you to read coordinates.dat file and extract the coordinates of all the nodes in a saturn network Use ufs_to_sf for link coordinates and an SF object

Usage

prepare_coordinates(dat, wd = ".", save_file = TRUE, output_file = if
  (save_file) "Coordinates.csv")

Arguments

dat

character; the name of the file to read e.g. "coordinates.dat"

wd

character; the working directory where the coordinates file exist

save_file

logical; TRUE to save the final file as .csv, else FALSE; default to TRUE

output_file

the name of the output csv file

Examples

prepare_coordinates("2014_coordinates.dat")

R-AECOM/SaturnR documentation built on Nov. 26, 2022, 2:46 p.m.