Learn R Programming

mtk (version 1.0)

getType-methods: The getType method

Description

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

Usage

getType(this)

Arguments

this
an object of the underlying class.

Value

Examples

Run this code
# 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'

Run the code above in your browser using DataLab