Description Usage Arguments Value Note Author(s) See Also Examples
View source: R/convertHMP2Binary.R
The function simply parse the hmp file and create binary files using the binaryMDPWriter.
1 | convertHMP2Binary(file, prefix = "")
|
file |
The name of the hmp file (e.g. mdp.hmp). |
prefix |
A character string with the prefix which will be added to the binary files. |
NULL (invisible).
Note all indexes are starting from zero (C/C++ style).
Lars Relund lars@relund.dk
binaryMDPWriter.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | wDir <- getwd()
setwd(system.file("models", package = "MDP"))
## convert the machine example to a hmp file
prefix1<-"machine1_"
convertBinary2HMP(prefix1, duration=NULL)
# have a look at the hmp file
xmlTreeParse("machine1_converted.hmp",useInternalNodes=TRUE)
## convert the machine example hmp file to binary files
prefix2<-"machine_cov_"
convertHMP2Binary("machine1.hmp",prefix2)
stateIdxDf(prefix1)
stateIdxDf(prefix2)
## convert the machine example with a single dummy node to a hmp file
#convertBinary2HMP("machine2_") # error since using scope = 3 not supported in hmp files
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.