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))


Search within the mtk package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.