|
a |
|
b/man/remove.low.cv.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/remove.low.cv.R |
|
|
3 |
\name{remove.low.cv} |
|
|
4 |
\alias{remove.low.cv} |
|
|
5 |
\title{Remove features with low variation} |
|
|
6 |
\usage{ |
|
|
7 |
remove.low.cv(X, cutoff = 0.5) |
|
|
8 |
} |
|
|
9 |
\arguments{ |
|
|
10 |
\item{X}{a matrix/data.frame} |
|
|
11 |
|
|
|
12 |
\item{cutoff}{a numeric value} |
|
|
13 |
} |
|
|
14 |
\value{ |
|
|
15 |
a data.frame/matrix |
|
|
16 |
} |
|
|
17 |
\description{ |
|
|
18 |
\code{remove.low.cv} that removes variables with low variation. |
|
|
19 |
From a matrix/data.frame (samples in rows, features in columns), it computes the coefficient of variation for every features (columns) |
|
|
20 |
and return a filtered data.frame with features for which the coefficient of variation is above a given threshold. |
|
|
21 |
} |
|
|
22 |
\examples{ |
|
|
23 |
mat <- matrix(sample(1:3, size = 200, replace = TRUE), ncol=20) |
|
|
24 |
remove.low.cv(mat, 0.4) |
|
|
25 |
|
|
|
26 |
} |