Description Usage Arguments Value Details Author(s) Examples
Gives a new type to the underlying object.
1 |
this |
the underlying object |
type |
a string indicating the new type for the data. It may be "numeric", "integer", "double", etc. |
invisble()
Used by many classes. The behavior depends on the underlying class.
Juhui WANG, MIA-jouy, INRA
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Define a factor
x1 <- make.mtkFactor(name="x1", type="double", distribName="unif",
distribPara=list(min=-pi, max=pi))
# Change the numeric value of the factor to "numeric" type.
setType(x1, type="numeric")
# Create a new object of mtkValue
d <- mtkValue("a", "double", 0)
# Change the numeric value of the object to "numeric" type.
setType(d, "numeric")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.