omnetpp-resultfiles
omnetpp-resultfiles copied to clipboard
loadVectors() not working (issues with 'vectorkeys')
See the following sample run:
x <- loadDataset("Test1-0.vec")
x$vectors resultkey runid file vectorid 1 0 Test1-0-20111020-16:26:42-17935 Test1-0.vec 0 module name 1 DistributionTest.gen sample:vector
v <- loadVectors(x$vectors)
Error in is.null(vectorkeys) : 'vectorkeys' is missing
You must invoke loadVectors with NULL as a second parameter: v <- loadVectors(x$vectors, NULL)
You can find it in the wiki/tutorial.
This issue is quite old and the project seems to be abandoned but I have also stumbled upon this problem.
after invoke as you said, a new issue:
Error in loadVectors(x$vectors, NULL) :+1: vectors$vectorid is not an integer vector
Using: v <- loadVectors(x, NULL) seems to work for me
This: v <- loadVectors(x, NULL) now tells me that the index is outdated. I used scavetool to correct that, finished w/out error. but v <- loadVectors(x, NULL) still gives me the same error.
Help o.0
Anyone has a solution for the "vectors$vectorid is not an integer vector" issue?
as in tutorial, I do the sequence x <- loadDataset("*.vec") v <- loadVectors(x,NULL)
% if this step has index outdated, tutorial said we should use scavetool % after that, the issue "vectors$vectorid is not an integer vector" disappear ^_^ % the error index outdated comes from lacking of *.vci corresponding file. If you copy only *.vec to other % directory to process, then it happens. To fix it, exit R first, then do scavetool as tutorial
q() scavetool index *.vec % then it produces *.vci index files for you
Hello,
Even when i used the scavetool or add the *.vci file, I am getting the issue "vectors$vectorid is not an integer vector"
Someone have found a solution to this issue ? Thanks