lasfilter

0th

Percentile

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: lasfilterduplicates, lasfiltersurfacepoints, lasfilters

Aliases
  • lasfilter
Examples
# NOT RUN {
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
lidar = readLAS(LASfile)

# Select the first returns classified as ground
firstground = lasfilter(lidar, Classification == 1 & ReturnNumber == 1)

# Multiple arguments are equivalent to &
firstground = lasfilter(lidar, Classification == 1, ReturnNumber == 1)

# Multiple criteria
first_or_ground = lasfilter(lidar, Classification == 1 | ReturnNumber == 1)
# }
Documentation reproduced from package lidR, version 2.0.0, License: GPL-3

Community examples

Looks like there are no examples yet.