Diff of /man/getCluster.Rd [000000] .. [d79ff0]

Switch to unified view

a b/man/getCluster.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/getCluster.R
3
\name{getCluster}
4
\alias{getCluster}
5
\title{Get variable cluster from (s)PCA, (s)PLS or block.(s)PLS}
6
\usage{
7
getCluster(X, user.block = NULL, user.cluster = NULL)
8
}
9
\arguments{
10
\item{X}{an object of the class: \code{pca}, \code{spca}, \code{pls}, \code{spls}, \code{block.pls} or \code{block.spls}}
11
12
\item{user.block}{a vector to filter the result and return the features of the specified blocks.}
13
14
\item{user.cluster}{a vector to filter the result and return only the features of the specified clusters}
15
}
16
\value{
17
A data.frame containing the name of feature, its assigned cluster and other information such as selected component, contribution, sign, ...
18
}
19
\description{
20
This function returns the cluster associated to each feature from a mixOmics object.
21
}
22
\details{
23
For each feature, the cluster is assigned according to the maximum contribution on a component and the sign of that contribution.
24
}
25
\examples{
26
demo <- suppressWarnings(get_demo_cluster())
27
pca.cluster <- getCluster(demo$pca)
28
spca.cluster <- getCluster(demo$spca)
29
pls.cluster <- getCluster(demo$pls)
30
spls.cluster <- getCluster(demo$spls)
31
block.pls.cluster <- getCluster(demo$block.pls)
32
block.spls.cluster <- getCluster(demo$block.spls)
33
34
}
35
\seealso{
36
\code{\link[mixOmics]{selectVar}}
37
}