Get all nonzero diagonals of a binary matrix, or, diagonals specified as a vector by argument d
.
rp_nzdiags(
RM = NULL,
d = NULL,
returnVectorList = TRUE,
returnNZtriplets = FALSE,
removeNZ = TRUE,
silent = TRUE
)
A binary (0,1) matrix.
An optional vector of diagonals to extract.
Return list
Return a dataframe with coordinates of only nonzero elements in diagonals (default = FALSE
)
Remove nonzero diagonals if TRUE
. If FALSE
returns the full diagonals matrix. Use e.g. to plot diagonal recurrence profiles (default = TRUE
)
Silent-ish mode
A matrix object with nonzero diagonals as columns and/or a dataframe with coordinates of nonzero diagonal elements
Other Distance matrix operations (recurrence plot):
bandReplace()
,
createCorridor()
,
mat_di2bi()
,
mat_di2ch()
,
mat_di2we()
,
mat_hamming()
,
rp()
,
rp_lineDist()
,
rp_plot()
,
rp_size()