# NOT RUN {
# Global option to display a progressbar
lidr_option(progress = TRUE)
# Build a Catalog
catalog = catalog("<Path to a folder containing a set of .las or .laz files>")
# Get coordinates from an external file
X = runif(30, 690000, 800000)
Y = runif(30, 5010000, 5020000)
R = 25
# Return a List of 30 circular LAS objects of 25 m radius
catalog %>% catalog_queries(X, Y, R)
# Return a List of 30 square LAS objects of 50x50 m
catalog %>% catalog_queries(X, Y, R, R)
# }
Run the code above in your browser using DataLab