rp_nzdiags: rp_nzdiags

View source: R/rp.R

rp_nzdiagsR Documentation

rp_nzdiags

Description

Get all nonzero diagonals of a binary matrix, or, diagonals specified as a vector by argument d.

Usage

rp_nzdiags(
  RM = NULL,
  d = NULL,
  returnVectorList = TRUE,
  returnNZtriplets = FALSE,
  removeNZ = TRUE,
  silent = TRUE
)

Arguments

RM

A binary (0,1) matrix.

d

An optional vector of diagonals to extract.

returnVectorList

Return list

returnNZtriplets

Return a dataframe with coordinates of only nonzero elements in diagonals (default = FALSE)

removeNZ

Remove nonzero diagonals if TRUE. If FALSE returns the full diagonals matrix. Use e.g. to plot diagonal recurrence profiles (default = TRUE)

silent

Silent-ish mode

Value

A matrix object with nonzero diagonals as columns and/or a dataframe with coordinates of nonzero diagonal elements

Author(s)

Fred Hasselman

See Also

Other Distance matrix operations (recurrence plot): bandReplace(), createCorridor(), mat_di2bi(), mat_di2ch(), mat_di2we(), mat_hamming(), rp(), rp_lineDist(), rp_plot(), rp_size()


FredHasselman/casnet documentation built on April 20, 2024, 3:05 p.m.