knitr::opts_chunk$set(echo = FALSE
                      , results = 'asis'
                      , warning = FALSE
                      , message = FALSE)

The thermal model uses the same style files as the BCG calculation.

Required Fields

The following fields are required in input files.

Click here to download an Excel file with this table plus example data.

# Packages
#library(readxl)
#library(DT)

# Data
fn_req <- "FuzzySet_ReqFields_20230606.xlsx"
path_req <- file.path("files", fn_req)
df_req <- readxl::read_excel(path_req, sheet = "RequiredFields")

# Table (DT)
cap_req <- "Table 1. Required fields."
# DT::datatable(df_req
#               , filter = "top"
#               , caption = cap_req
#               , options = list(scrollX = TRUE
#                                , autoWidth = TRUE)
#               )
# DT::datatable(iris) # not working correctly in fragment
knitr::kable(df_req, caption = cap_req)

Optional Fields

Fields necessary to calculate other metrics can be included and do not affect the thermal model output. Additional metrics are available in the '*metval_all.csv' file.

# Packages
#library(readxl)
#library(DT)

# Data
fn_opt <- "FuzzySet_ReqFields_20230606.xlsx"
path_opt <- file.path("files", fn_opt)
df_opt <- readxl::read_excel(path_opt, sheet = "OptionalFields")

# Table
cap_opt <- "Table 2. Optional fields"
# DT::datatable(df_opt
#               , filter = "top"
#               , caption = cap_opt
#               , options = list(scrollX = TRUE
#                                , autoWidth = TRUE)
#               )
knitr::kable(df_opt, caption = cap_opt)

Last updated 2023-06-07



leppott/BCGcalc documentation built on May 17, 2024, 5:55 p.m.