set_names() renames LAS/LAZ/COPC files to match the ADV naming standard.
Usage
set_names(
path,
prefix = "3dm",
zone = 32,
region = NULL,
year = NULL,
copc = FALSE,
dry_run = FALSE
)Arguments
- path
Character. Path to a LAS/LAZ/COPC file or a directory containing LASfiles.
- prefix
Character. Naming prefix (default
"3dm").- zone
Integer. UTM zone (default
32).- region
Character. Federal state abbreviation (optional). Automatically determined if
NULL.- year
Integer or character. Acquisition year to append to filenames (optional). If
NULL, the year is derived from the file.- copc
Logical. Whether files are COPC (
.copc.laz, defaultFALSE).- dry_run
Logical. If
TRUE, only preview renaming without modifying files (defaultFALSE).- verbose
Logical. Print messages and a preview of renaming (default
FALSE).
Examples
f <- system.file("extdata", package = "managelidar")
set_names(copy, verbose = TRUE, dry_run = TRUE)
#> Error in set_names(copy, verbose = TRUE, dry_run = TRUE): unused argument (verbose = TRUE)