rp_copy_attributes: Copy Matrix Attributes

View source: R/rp.R

rp_copy_attributesR Documentation

Copy Matrix Attributes

Description

Simple attribute copy used in casnet to convert between matrix and Matrix classes and back.

Usage

rp_copy_attributes(
  source,
  target,
  source_remove = c("names", "row.names", "class", "dim", "dimnames", "x")
)

Arguments

source

Source matrix

target

Target matrix

source_remove

Remove these attribute fields from the source before copying.

Value

The target matrix with attributes copied from the source matrix.


FredHasselman/casnet documentation built on March 10, 2024, 8:23 a.m.