lasfilter
From lidR v1.3.0
by Jean-Romain Roussel
Return points with matching conditions
Return points with matching conditions.
Usage
lasfilter(.las, ...)
Arguments
- .las
An object of class
LAS
- …
Logical predicates. Multiple conditions are combined with & or ,
Value
An object of class LAS
See Also
Other lasfilters: lasfilters
Examples
# NOT RUN {
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
lidar = readLAS(LASfile)
# Select the first returns classified as ground
firstground = lidar %>% lasfilter(Classification == 1 & ReturnNumber == 1)
# Multiple arguments are equivalent to &
firstground = lidar %>% lasfilter(Classification == 1, ReturnNumber == 1)
# Multiple criteria
first_or_ground = lidar %>% lasfilter(Classification == 1 | ReturnNumber == 1)
# }
Community examples
Looks like there are no examples yet.