purify: Largest elements in norm from a matrix

Description Usage Arguments

View source: R/misc.R

Description

The top largest rows in norm from x are retained. Others are set to zero or removed (remove_zero)

Usage

1
purify(x, top = floor(0.1 * nrow(x)), remove_zero = FALSE, p = 2)

Arguments

x

numeric matrix

top

number of top elements

remove_zero

logical

p

Coefficient p of the L_p norm


amcdavid/AMmisc documentation built on June 1, 2020, 11:04 a.m.