read_stm_file: Read StanForD Classic .stm-files (mahcine reports from forest...

View source: R/stm2tables.R

read_stm_fileR Documentation

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

Description

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

Usage

read_stm_file(filename, verbose = FALSE)

Arguments

filename

(including path)

verbose

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

Details

this function reads one stanford stemfile (.stm)

Value

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)
 stmfiles <- files[stringr::str_detect(files, ".stm")]
 stemdata <- read_stm_file(stmfiles[1])
 stemdata <- read_stm_file(stmfiles[2])

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