Learn R Programming

wrMisc (version 1.15.3.1)

.keepCenter1d: Refine/filter 'dat1' (1dim dataset, eg cluster) with aim of keeping center of data

Description

This function allows to refine/filter 'dat1' (1dim dataset, eg cluster) with aim of keeping center of data. It is done based on most freq class of histogramm keep/filter data if 'core' (

Usage

.keepCenter1d(
  dat1,
  core = NULL,
  keepOnly = TRUE,
  displPlot = FALSE,
  silent = TRUE,
  debug = FALSE,
  callFrom = NULL
)

Value

This function returns the index of values retained or if 'keepOnly' return list with 'keep' index and 'drop' index

Arguments

dat1

simple numeric vector

core

numeric vactor (betw 0 and 1) for fraction of data to keep; if null trimmedMean/max hist occurance will be used, limited within 30-70 perent; may also be 'high' or 'low' for forcing low (20-60percent) or high (75-99) percent of data to retain

keepOnly

(logical)

displPlot

(logical) show plot of hist & boundaries

silent

(logical) suppress messages

debug

(logical) additional messages for debugging

callFrom

(character) allow easier tracking of messages produced

See Also

searchLinesAtGivenSlope

Examples

Run this code
set.seed(2016); dat1 <- matrix(c(runif(200)+rep(1:10,20)),ncol=10)

Run the code above in your browser using DataLab