getNames-methods: The 'getNames' method

Description Usage Arguments Value Author(s) Examples

Description

Returns the name of the factors managed by an object of class mtkExpFactors.

Usage

1
getNames(this)

Arguments

this

an object of the class mtkExpFactors.

Value

a list of strings

Author(s)

Hervé Richard, BioSP, Inra, Herve.Richard@avignon.inra.fr, Hervé Monod and Juhui WANG, MIA-jouy, INRA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# Define three factors
	x1 <- make.mtkFactor(name="x1", distribName="unif",
		 distribPara=list(min=-pi, max=pi))
	x2 <- make.mtkFactor(name="x2", distribName="unif",
 		 distribPara=list(min=-pi, max=pi))
	x3 <- make.mtkFactor(name="x3", distribName="unif", 
    	 distribPara=list(min=-pi, max=pi))

# Build an object of the "mtkExpFactors" class
	ishi.factors <- mtkExpFactors(list(x1,x2,x3))

# Get the names of the factors managed by all the factors
	factors <- getNames(ishi.factors)

mtk documentation built on May 2, 2019, 4:15 a.m.