View source: R/hIndxMeanCalc4Traits.R
| hIndxMeanCalc4Traits | R Documentation | 
This function processes heritability index data, filtering out empty trait names, and calculates the mean heritability for each unique trait. The resulting output is a data frame with traits and their corresponding mean heritability values.
hIndxMeanCalc4Traits(hIndexValDF)
| hIndexValDF | A data frame containing heritability index values with at least two columns:  | 
A data frame with two columns: Trait.name and MeanValue, where MeanValue represents the mean heritability for each trait.
Hu et al. (2018) \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1093/nar/gky1084")}
# Example of usage:
hIndexValDF <- data.frame(Trait.name = c("Trait1", "Trait2", "Trait1", "Trait2"),
                          Heritability = c(0.5, 0.6, 0.7, 0.8))
result <- hIndxMeanCalc4Traits(hIndexValDF)
print(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.