dssRemoveOutliers: Remove outliers from all or some of the columns of a data...

View source: R/dssRemoveOutliers.R

dssRemoveOutliersR Documentation

Remove outliers from all or some of the columns of a data frame and replace them with NAs.

Description

Remove outliers from all or some of the columns of a data frame and replace them with NAs.

Usage

dssRemoveOutliers(
  x,
  collist = NULL,
  sigmas = NULL,
  minval = NULL,
  maxval = NULL,
  async = TRUE,
  datasources = NULL
)

Arguments

x

a character name of the data frame

collist

a vector of columns. They must exist in x and be numeric. If null, all the *numeric* columns from x will be used.

sigmas

an integer, how many standard deviations will be kept on either side of the mean? If NULL, minval and maxval will be taken into account.

minval

either a number or a vector of numbers of length equal to collist (or to the number of numeric columns in x if the latter is null). It sets the lower cutoff, values smaller than this will be replaced with NAs. Ignored if sigmas is set.

maxval

either a number or a vector of numbers of length equal to collist (or to the number of numeric columns in x if the latter is null). It sets the higher cutoff, values larger than this will be replaced with NAs. Ignored if sigmas is set.

async

a logical, see datashield.aggregate

datasources

a list of opal objects obtained after logging into the opal servers (see datashield.login)


sib-swiss/dsSwissKnifeClient documentation built on July 16, 2025, 6:25 p.m.