setWeights-methods: The 'setWeights' method

Description Usage Arguments Value Author(s) Examples

Description

Gives new weights to the discrete distribution associated with the factor's domain.

Usage

1

Arguments

this

the underlying object of the class to proceed (mtkLevels).

weights

a vector of numeric value.

Value

invisible

Author(s)

Juhui WANG, MIA-jouy, INRA

Examples

1
2
3
4
5
# Create a mtkLevels object

	l <- mtkLevels(type='categorical', levels=c(1,2,3,4))

	setWeights(l, weights=rep(0.25,4))

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