same_attributes_as: same_attributes_as

View source: R/utils-data.R

same_attributes_asR Documentation

same_attributes_as

Description

Copy attributes from one data system object to another.

Usage

same_attributes_as(x, y, copy_strict_flags = TRUE)

Arguments

x

An object (that should get same data system attributes as y)

y

Another object (source of attributes)

copy_strict_flags

A flag if FALSE indicates to not copy the "strict" flags which may not be manipulated later. Namely this avoids copying the title and legacy name. Note the default is copy everything, i.e. TRUE.

Value

x with attributes set to those of y.


JGCRI/gcamdata documentation built on March 21, 2023, 2:19 a.m.