fix the oTableMaker bug
This commit is contained in:
parent
d672205c6c
commit
a903bd2f8b
@ -27,7 +27,10 @@ OtableMaker <- function(parametersReal){
|
||||
mutate(MIN=OTFzero$MIN,MAX=OTFzero$MAX)
|
||||
|
||||
sliced <- constMatrix %>%
|
||||
dplyr::filter(GROUP %in% groupIDs)
|
||||
dplyr::filter(GROUP %in% groupIDs)
|
||||
slicedIndexes<- which(sliced[,"INDEX"] %in% intersect(sliced[,"INDEX"],otfIndexes))
|
||||
sliced[slicedIndexes,c("MIN","MAX")] <- OTF[which(OTF["GROUP"] == groupIDs),c("MIN","MAX")]
|
||||
|
||||
OTbig <- rbind(OT0,sliced) %>% data.frame()
|
||||
parnumbers <- nrow(OTbig)
|
||||
|
||||
@ -36,7 +39,7 @@ OtableMaker <- function(parametersReal){
|
||||
OTbig[i,3] <- OTF[OTF$INDEX==OTbig[i,1],2]
|
||||
OTbig[i,4] <- OTF[OTF$INDEX==OTbig[i,1],3]
|
||||
if(OTbig$Type[i]==2){
|
||||
OTbig$DEPENDENCE[i] <-2
|
||||
OTbig$DEPENDENCE[i] <- 2
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -47,4 +50,5 @@ OtableMaker <- function(parametersReal){
|
||||
select(nGroup,TYPE)
|
||||
return(list(Otable=OTbig,driver=summaries))
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -44,3 +44,4 @@ musoMappingFind <- function(variable=NULL){
|
||||
mMapping[grep(variable,mMapping[,2]),]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user