thinOut | R Documentation |
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.
thinOut(data, filterColname, binsize)
data |
The data.frame to be filtered |
filterColname |
Name of the filter column as string |
binsize |
Width of a bin |
Data.frame with reduced rows, but identical input columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.