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