Skip to contents

Sample points

Usage

sample_points(x, filter = "-keep_class 2 -keep_random_fraction 0.01")

Arguments

x

Virtual point cloud, LAScatalog, LAS, or path to files

filter

Character. Filters passed to lasR::reader_las

Value

Dataframe containing XYZ coordinates of sampled points

Examples

f <- system.file("extdata", "Topography.las", package = "lasR")
df <- sample_points(f)
head(df)
#>          X       Y        Z
#> 1 273365.4 5274623 803.2620
#> 2 273377.4 5274568 806.3390
#> 3 273378.0 5274487 809.2080
#> 4 273379.0 5274540 806.4708
#> 5 273389.0 5274480 808.1700
#> 6 273402.5 5274374 808.0630