setName-methods: The 'setName' method

Description Usage Arguments Value Details Author(s) Examples

Description

Gives a new name to the underlying object

Usage

1
setName(this, name)

Arguments

this

the underlying object

name

a string indicating the new name.

Value

invisble()

Details

Used by many classes. The behavior depends on the underlying class.

Author(s)

Juhui WANG, MIA-jouy, INRA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# Define a factor
	x1 <- make.mtkFactor(name="x1", type="double", distribName="unif",
		 distribPara=list(min=-pi, max=pi))
		 
# Change the numeric value of the factor to "numeric" type.

	setName(x1, name="mit")
	
# Create a  new object of mtkValue
d <- mtkValue("a", "double", 0)

# Change the name of the object to "x" type.
setName(d, "x")

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