trait_summary: Function to calculate summary statistics for fieldbook data...

Description Usage Arguments Value Author(s)

View source: R/trait_stats.R

Description

This function is capable of divide the information in categorial or quantitative data based on a data dictionary for potato and sweepotato. If it is categorical, returns the count and mode. And if it is quantitative, returns the count, media and standart desviation.

Usage

1
2
trait_summary(fieldbook, trait, genotype = NA, factor = NA,
  trait_dict = NULL, trait_type = NULL, na.rm = TRUE)

Arguments

fieldbook

A data frame of the fieldbook

trait

The name or position of the measured variable that will be summarized.

genotype

The column name of the genotype

factor

The column name of the factor

trait_dict

The data frame of the data dictionary for potato and sweetpotato. NULL in case of not having trait dictionary.

trait_type

Type of trait. Use just in case trait_dict=NULL. There are two types: numerical and categorical

na.rm

A boolean that indicates whether to ignore NA

Value

A data frame with the count, mean and standard desviation of the trait

Author(s)

Omar Benites


omarbenites/traittools documentation built on Dec. 24, 2019, 5:33 a.m.