generate_unit: A helper function to generate unit for iBART input

View source: R/generate_unit.R

generate_unitR Documentation

A helper function to generate unit for iBART input

Description

A helper function to generate unit for iBART input

Usage

generate_unit(unit, dimension)

Arguments

unit

A vector of unit of the primary features. For example, unit <- c("cm", "s"). Then the unit of x1 is centimeter and the unit of x2 is second.

dimension

A vector of dimension of the units. For example, unit <- c("cm", "s") and dimension <- c(2, 1) mean that the unit of x1 is square centimeter and the unit of x2 is second.

Value

A list that contains unit and dimension information.


iBART documentation built on Nov. 15, 2023, 1:09 a.m.