fix a small bug around dailyTable

This commit is contained in:
Hollos Roland 2020-02-13 11:00:09 +01:00
parent 1704cf524c
commit 65c3a60b4b

View File

@ -10,7 +10,7 @@ getDailyOutputList <- function(settings=NULL){
settings <- setupMuso()
}
varTable <- getOption("RMuso_varTable")$'6'
toPrint <- varTable[which(varTable$codes %in% as.numeric(settings$dailyVarCodes)),]
toPrint <- varTable[match(as.numeric(settings$dailyVarCodes),varTable[,1]),]
toPrint <- cbind.data.frame(index=1:nrow(toPrint),toPrint)
print(toPrint, row.names=FALSE)
}