Learn R Programming

mtk (version 1.0)

mtkFeature: The constructor of the class mtkFeature

Description

The constructor of the class mtkFeature. See also make.mtkFeatureList.

Usage

mtkFeature(name='unknown', type='logical', val=NULL)

Arguments

name
(character) the name of the feature.
type
(character) the data type managed by the feature such as 'numeric', 'double', 'logical', etc..
val
(ANY) the value of the feature.

Value

mtkFeature class

Examples

Run this code
# creates a feature "he"
	f <- mtkFeature(name='he', type ='character', val = 'pekin')
	
# We usually use the 'make.mtkFeatureList()' function to define 
# a list of 'mtkFeature' instead of the constructor 
# of the 'mtkFeature' class

	flist <- make.mtkFeatureList(list(min=-1,max=+1,shape="hello"))

Run the code above in your browser using DataLab