powered by
Add M values to a given linear feature and store them in the m-coordinate of the sf object. Returns the new sf object with added m-values. For more information on m-values and linear referencing see: http://desktop.arcgis.com/en/arcmap/10.3/guide-books/linear-referencing/what-is-linear-referencing.htm
addMValues(sfDataObject)
An sf object. Must be a LINESTRING, POLYGON, MULTIPOLYGON, or MULTILINESTRING
Returns the new sfDataObject with added m-values. The class of the output is sf.
sfDataObject
sf
# NOT RUN { library(rLFT) data("shpObject") # Assign M Values to each vertex mValues <- addMValues(shpObject) print("M Values Added") head(st_coordinates(mValues)) # }
Run the code above in your browser using DataLab