getType-methods: The 'getType' method

Description Usage Arguments Value Author(s) Examples

Description

Returns a string indicating the data type associated with the underlying object.

Usage

1
getType(this)

Arguments

this

an object of the underlying class.

Value

a string

Author(s)

Juhui WANG, MIA-jouy, INRA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Define a factor
	x1 <- make.mtkFactor(name="x1", distribName="unif",
		 distribPara=list(min=-pi, max=pi))
	
# Return the data-type associated with the factor
	t <- getType(x1)
	
# Create an object of the 'mtkFeature' class.

f <- mtkFeature(name="x", type="double", val=0.0)

# Return the data-type associated with the feature

getType(f) # gives 'double'

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