convert_phenos: Convert phenotypic data to a list_phenos object.

View source: R/convert_data.R

convert_phenosR Documentation

Convert phenotypic data to a list_phenos object.

Description

This function creates a list_phenos object from a data matrix supplied as input.

Usage

convert_phenos(phenos)

Arguments

phenos

Matrix of phenotypes (rows observations, columns phenotypic variables), without missing values.

Value

An object of class "list_phenos".

phenos

Matrix containing the original phenotypic data.

var_err

Vector containing the sample phenotypic variances.

See Also

convert_snps, generate_snps, replicate_real_snps, generate_phenos, replicate_real_phenos, generate_dependence

Examples

user_seed <- 123; set.seed(user_seed)
n <- 500; d <- 1000
phenos <- matrix(rnorm(n * d), nrow = n)

list_phenos <- convert_phenos(phenos)


hruffieux/echoseq documentation built on Jan. 10, 2024, 10:06 p.m.