Simple attribute copy used in casnet
to convert between matrix
and Matrix
classes and back.
rp_copy_attributes(
source,
target,
source_remove = c("names", "row.names", "class", "dim", "dimnames", "x")
)
Source matrix
Target matrix
Remove these attribute fields from the source before copying.
The target matrix with attributes copied from the source matrix.