Learn R Programming

Phenotype (version 0.1.0)

outlier: outlier

Description

Remove outliers from phenotypic data

Usage

outlier(
  x,
  sample = NULL,
  year = NULL,
  loc = NULL,
  rep = NULL,
  phe = NULL,
  fold = 1.5,
  mode = "normal"
)

Arguments

x

Input phenotype data file.

sample

The column name of the sample name in phenotypic data. (Default: NULL)

year

The column name of the year in phenotypic data. (Default: NULL)

loc

The column name of the location in phenotypic data. (Default: NULL)

rep

The column name of the replication in phenotypic data. (Default: NULL)

phe

The column name of the phenotypic value in data. (Default: NULL)

fold

Fold before inter-quartile range. (Default: 1.5)

mode

Type of input phenotypic data. "normal" means normal data, "blup" means data containing year/location/repetition. (Default: "normal")

Value

phenotypic data with outliers removed.

Examples

Run this code
# NOT RUN {
data("wheatds")
inlier <- outlier(wheatds, sample = "Line", loc = "Env", rep = "Rep", phe = "DS", mode = "blup")
# }

Run the code above in your browser using DataLab