dot-mat2df: Convert Matrix to Data Frame

dot-mat2dfR Documentation

Convert Matrix to Data Frame

Description

Convert PBS matrices to data frames, preserving certain attributes.

Usage

.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.

Value

Transformed data object (from matrix to data frame).

Author(s)

Nicholas M. Boers, Software Engineer, Jobber, Edmonton AB

Maintainer: Rowan Haigh, Program Head – Offshore Rockfish
Pacific Biological Station (PBS), Fisheries & Oceans Canada (DFO), Nanaimo BC
locus opus: Remote office, Vancouver BC
Last modified Rd: 2024-09-03

See Also

In package PBSmapping:
addPoints, .addFeature, .validateData


PBSmapping documentation built on Sept. 30, 2024, 9:21 a.m.