merge_attr_table: merge two attribute tables

View source: R/attribute-utils.R

merge_attr_tableR Documentation

merge two attribute tables

Description

merge two attribute tables, assuming that the latter one has more complete data, but the newer one has all of the applicable fields. Fields in old.attrs that don't appear in new.attrs will be dropped. Likewise, fields in new.attrs but not in old.attrs will retain the values in new.attrs.

Usage

merge_attr_table(new.attrs, old.attrs)

Arguments

new.attrs

an attribute table (data.frame)

old.attrs

an attribute table (data.frame)

Value

a merged attribute table.


USGS-R/meddle documentation built on April 29, 2023, 11:50 a.m.