This function reads all IFCB instrument settings information files (.hdr) from a specified directory.

ifcb_read_hdr_data(hdr_folder, gps_only = FALSE, verbose = TRUE)

Arguments

hdr_folder

A character string specifying the path to the directory containing the .hdr files.

gps_only

A logical value indicating whether to include only GPS information (latitude and longitude). Default is FALSE.

verbose

A logical value indicating whether to print progress messages. Default is TRUE.

Value

A data frame with sample names, GPS latitude, GPS longitude, and optionally timestamps.

Examples

if (FALSE) {
# Extract all HDR data
hdr_data <- ifcb_read_hdr_data("path/to/data")
print(hdr_data)

# Extract only GPS data
gps_data <- ifcb_read_hdr_data("path/to/data", gps_only = TRUE)
print(gps_data)
}