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
prepare_coordinates(dat, wd = ".", save_file = TRUE, output_file = if (save_file) "Coordinates.csv")
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 |
prepare_coordinates("2014_coordinates.dat")#> Warning: cannot open file '2014_coordinates.dat': No such file or directory#> Error in file(file, "rt"): cannot open the connection