Skip to contents

Add 'tech_type' column to a data.frame

Usage

add_tech_type(x, factors = TRUE, force = TRUE)

Arguments

x

data.frame that has 'process' column

factors

logical, if TRUE, the 'tech_type' column will have class

force

logical, if TRUE will add unknown types of technologies to the factor level, or report the 'unknown types' error if FALSE.

Value

x data.frame with added or overwritten 'tech_type' column.