dot-keepFiniteCol: Remove all columns where all data are not finite

.keepFiniteColR Documentation

Remove all columns where all data are not finite

Description

This function aims to remove all columns where all data are not finite

Usage

.keepFiniteCol(
  dat,
  msgStart = NULL,
  silent = FALSE,
  debug = FALSE,
  callFrom = NULL
)

Arguments

dat

(matrix or data.frame) main input

msgStart

(character)

silent

(logical) suppres messages

debug

(logical) additional messages for debugging

callFrom

(character) allows easier tracking of messages produced

Value

This function returns a corrected matrix or data.frame

See Also

renameColumns; is.finite

Examples

ma1 <- matrix(c(1:5, Inf), ncol=2)
.keepFiniteCol(ma1)


wrMisc documentation built on Sept. 11, 2024, 6:10 p.m.