read_pri_file: Read StanForD Classic PRI-files (mahcine reports from forest...

View source: R/pri2tables.R

read_pri_fileR Documentation

Read StanForD Classic PRI-files (mahcine reports from forest machines)

Description

Read StanForD Classic PRI-files (mahcine reports from forest machines)

Usage

read_pri_file(filename, verbose = FALSE)

Arguments

filename

is the file name of the pri file to be digested

verbose

Setting this parameter to TRUE will make the function also return the variable content of all variables available in the file.

Value

should return a list of tables populated with data from the stm report: report_header, object_definition, operator_definition, product_definitions, stems, logs

Examples

 files <- list.files(system.file("extdata", package = "stanfordclassicr"), full.names = TRUE)
 prifiles <- files[stringr::str_detect(files, ".pri")]
 pridat1 <- read_pri_file(prifiles[1], verbose = TRUE)
 pridat2 <- read_pri_file(prifiles[2])

hbelbo/stanfordclassicr documentation built on Dec. 23, 2024, 2:45 p.m.