reorder_fields: Reorder the processed timber's fields

View source: R/reorder_fields.R

reorder_fieldsR Documentation

Reorder the processed timber's fields

Description

reorder_fields() organizes the left-to-right placement of the fields (columns) to match the order in which they are arranged in the iAM.AMR Analytica model nodes. It also deletes the fields exclude_sawmill and exclude_sawmill_reason from the final output, as these are only needed internally, to filter out unusable factors into the scrap_pile.

Usage

reorder_fields(timber, cedar_version)

Arguments

timber

a tibble of timber, returned from add_ident.

cedar_version

numeric [1,2]: the version of CEDAR that created the export.

Value

The passed tibble of processed timber with reorganized columns, ready for Analytica.


iAM-AMR/sawmill documentation built on June 30, 2024, 2:25 a.m.