fin: Remove infinite and NA values

View source: R/yogitools.R

finR Documentation

Remove infinite and NA values

Description

Removes infinite and NA values from vectors, lists, matrices and data.frames.

Usage

fin(x)

Arguments

x

the object to which the function is applied

Details

Warning: If the given object is matrix or data.frame, any row containing infinite or NA values is removed entirely. All columns must be numeric.

Value

the same object, with NAs and infinite values removed

Examples

fin(c(1,2,NA,3))
fin(data.frame(a=c(1,2,NA,3),b=c(4,5,6,7)))

jweile/yogitools documentation built on May 11, 2023, 7:42 p.m.