thinOut: Thin out a data.frame by removing rows with similar numerical...

View source: R/fcn_misc.R

thinOutR Documentation

Thin out a data.frame by removing rows with similar numerical values in a certain column.

Description

All values in the numerical column 'filterColname' are assigned to bins of width 'binsize'. Only one value per bin is retained. All other rows are removed and the reduced data frame will all its columns is returned.

Usage

thinOut(data, filterColname, binsize)

Arguments

data

The data.frame to be filtered

filterColname

Name of the filter column as string

binsize

Width of a bin

Value

Data.frame with reduced rows, but identical input columns


PTXQC documentation built on May 29, 2024, 9:26 a.m.