lidar_point_value | R Documentation |
lidar_point_value
is a wrapper for the $point_value
method of lfcLiDAR
objects. See lidar
.
lidar_point_value(object, sf, point_id_variable, variables)
object |
|
sf |
sf object with the points to extract |
point_id_variable |
character vector of length 1 with the name of the
variable of |
variables |
character vector with the names of the variables to access |
This function returns the same sf object provided, with new columns with the values of each point for each variable requested.
Other LiDAR functions:
lidar_avail_tables()
,
lidar_clip_and_stats()
,
lidar_describe_var()
,
lidar_get_data()
,
lidar_get_lowres_raster()
,
lidar()
if (interactive()) {
library(dplyr)
lidardb <- lidar()
points_data <-
nfi()$get_data('plots', spatial = TRUE) |>
dplyr::slice(1:5) |>
dplyr::select(plot_id)
dbh_plots <- lidar_point_value(lidardb, points_data, 'plot_id', 'DBH')
# lidardb is an R6 object, so the previous example is the same as:
lidardb$point_value(points_data, 'plot_id', 'DBH')
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.