# Create a new object of 'mtkValue'
d <- mtkValue("a", "double", c(0,1))
getType(d) # gives "double"
getName(d) # gives "a"
getValue(d) # gives (0, 1)
setType(d, 'character')
getValue(d) # gives ("0", "1")
setValue(d, "3.14")
getValue(d) # gives "3.14"
Run the code above in your browser using DataLab