isInFile.R: Find a model in a file.

Description Usage Arguments Value Author(s) References Examples

Description

Find a given model defined by (K, S) in a file.

Usage

1
isInFile.R(K, S, file, header)

Arguments

K

The number of clusters.

S

A vector of logicals of length equal to the number of variables, that indicates the clustering variables.

file

A file where to find the model.

header

A logical indicating if the file contains a header or not.

Value

A list :

Author(s)

Wilson Toussile

References

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
data(genotype1)
head(genotype1) 
genotype2 = cutEachCol(genotype1[, -11], ploidy = 2)
head(genotype2)

S = c(rep(TRUE, 8), rep(FALSE, 2))
## Not run: 
outPut = selectK.R(genotype2, S, Kmax = 6, ploidy = 2, Kmin=1)
isInFile.R(K = 5, S, "genotype2_ExploredModels.txt", header = TRUE)
isInFile.R(K = 5, rep(TRUE, 10), "genotype2_ExploredModels.txt", header = TRUE)

file.remove("genotype2_ExploredModels.txt")

## End(Not run)

ClustMMDD documentation built on May 2, 2019, 2:44 p.m.