z_value | R Documentation |
The slope_z*()
functions calculate summary values for the Z axis
in sfc
objects with XYZ
geometries.
z_value(x)
z_start(x)
z_end(x)
z_mean(x)
z_max(x)
z_min(x)
z_elevation_change_start_end(x)
z_direction(x)
z_cumulative_difference(x)
x |
An |
A vector of numeric values representing elevations associated with simple feature geometries that have elevations (XYZ coordinates).
A numeric vector of length 1 representing the first Z coordinate.
A numeric vector of length 1 representing the last Z coordinate.
A numeric vector of length 1 representing the mean of Z coordinates.
A numeric vector of length 1 representing the maximum of Z coordinates.
A numeric vector of length 1 representing the minimum of Z coordinates.
A numeric vector of length 1 representing the difference between the last and first Z coordinates.
A numeric vector of length 1 representing the sign of the difference between the last and first Z coordinates.
A numeric vector of length 1 representing the sum of absolute differences between consecutive Z coordinates.
if (rlang::is_installed("sf")) {
x = slopes::lisbon_route_3d
x
z_value(x)[1:5]
xy = slopes::lisbon_route
try(z_value(xy)) # error message
z_start(x)
z_end(x)
z_direction(x)
z_elevation_change_start_end(x)
z_direction(x)
z_cumulative_difference(x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.