matrix_to_df {scanstatistics} | R Documentation |
Convert a matrix to a data frame.
Description
Convert a matrix to a data frame with columns time, location, and one more containing the elements of the input matrix.
Usage
matrix_to_df(mat, name, locations = NULL, times = NULL)
Arguments
mat |
A matrix. |
name |
The name of the third column in the output matrix. |
locations |
If not |
times |
If not |
Value
A matrix with columns time, location, name
, where name
is specified in the input.
[Package scanstatistics version 1.1.1 Index]