mxyz {agricolae}R Documentation

Mean on data frame in matrix

Description

It constructs a matrix from a data table. It is a tool for the stability analysis.

Usage

mxyz(x, y, z)

Arguments

x Vector
y Vector
z Vector

Value

x Alfanumeric
y Alfanumeric
z Numeric

Author(s)

Felipe de Mendiburu

See Also

stability.par, stability.nonpar

Examples

library(agricolae)
# example 1
z<-1:15
x<-c(1,1,1,2,2,2,3,3,3,4,4,4,5,5,5)
y<-c(1,2,3,1,2,3,1,2,3,1,2,3,1,2,3)
mxyz(x,y,z)
#
#    1  2  3
# 1  1  2  3
# 2  4  5  6
# 3  7  8  9
# 4 10 11 12
# 5 13 14 15

# Example 2
data(CIC)
attach(CIC)
means<-mxyz(Genotype,Environment,Relative)
CIC.mean<-data.frame(genotype=row.names(means),means)
CIC.mean<-delete.na(CIC.mean,"greater")
stability.nonpar(CIC.mean)


[Package agricolae version 1.0-4 Index]