ps_sfc_add_z | R Documentation |
sfc_column and z_column must have identical number of rows for binding. z_column of 'units' class is accepted. If new_column is NULL, sfc_column will be replaced with the modifed sfc column.
ps_sfc_add_z(
x,
sfc_column = ps_active_sfc_name(x),
z_column = "Elevation",
new_column = NULL,
remove_z = TRUE
)
x |
A sf object. |
sfc_column |
A string of the name of the sfc column to add z coordinates to. |
z_column |
A string of the name of the column containing elevation data. |
new_column |
A string of the name of the modified sfc column. If NULL, sfc_column will be modified. |
remove_z |
A logical indicating whether to remove the z_column after modifying sfc_column. |
The modified object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.