stdcase: Standardize the case of a table's columns.

View source: R/importgcam.R

stdcaseR Documentation

Standardize the case of a table's columns.

Description

GCAM is a little inconsistent about the case of the column names in its tables. Usually it's all lower case, but occasionally we get a 'Region' instead of 'region'. To keep analysis functions from having to guess at the case they need to be looking for we standardize to all lower case, except for the XYYYY year columns, and 'Units', which existing tools all expect to be in title case.

Usage

stdcase(tbl)

Arguments

tbl

The table to standardize


JGCRI/rgcam documentation built on June 7, 2024, 10:54 a.m.