coreHunterData: Initialize Core Hunter data.

Description Usage Arguments Value See Also Examples

View source: R/data.R

Description

The data may contain genotypes, phenotypes and/or a precomputed distance matrix. All provided data should describe the same individuals which is verified by comparing the item ids and names.

Usage

1

Arguments

genotypes

Genetic marker data (chgeno).

phenotypes

Phenotypic trait data (chpheno).

distances

Precomputed distance matrix (chdist).

Value

Core Hunter data (chdata) with elements

geno

Genotype data of class chgeno if included.

pheno

Phenotype data of class chpheno if included.

dist

Distance data of class chdist if included.

size

Number of individuals in the dataset.

ids

Unique item identifiers.

names

Item names. Names of individuals to which no explicit name has been assigned are equal to the unique ids.

java

Java version of the data object.

Core Hunter data of class chdata.

See Also

genotypes, phenotypes, distances

Examples

1
2
3
4
5
6
7
8
9
geno.file <- system.file("extdata", "genotypes.csv", package = "corehunter")
pheno.file <- system.file("extdata", "phenotypes.csv", package = "corehunter")
dist.file <- system.file("extdata", "distances.csv", package = "corehunter")

my.data <- coreHunterData(
  genotypes(file = geno.file, format = "default"),
  phenotypes(file = pheno.file),
  distances(file = dist.file)
)

corehunter documentation built on April 17, 2018, 1:04 a.m.