Skip to contents

Map columns of a SoilProfileCollection or data.frame to a custom schema

Usage

remapColumns(x, .map)

Arguments

x

a SoilProfileCollection or horizon-level data.frame

.map

a named, nested list where each sub-list defines the columns associated with a new table in terms of existing columns in x. The basic format of the .map argument follows: list(new_table_name = list(new_column_name = 'old_column_name'))

Value

a named list of data.frame objects (equal in length to .map) containing data from x "remapped" to the schema specified by .map.