Convert PBS matrices to data frames, preserving certain attributes.
.mat2df(data)
Arguments
data: numeric -- matrix, usually numeric but could be all character (mixing data modes usually not allowed in matrices/arrays)
Details
Converts a PBS matrix object to a PBS data frame. Preserves PBS class objects 'EventData', 'LocationSet', 'PolyData', 'PolySet', if any of them exist in the matrix.
Returns
Transformed data object (from matrix to data frame).