From 3f76b1913b91c9ecbfbe9040d2cb94f18df3d26d Mon Sep 17 00:00:00 2001 From: JTPetter <61797391+JTPetter@users.noreply.github.com> Date: Mon, 15 Apr 2024 17:27:07 +0200 Subject: [PATCH] Update upgrade file for DoE changes --- inst/Upgrades.qml | 73 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/inst/Upgrades.qml b/inst/Upgrades.qml index 68c324d3..85bce990 100644 --- a/inst/Upgrades.qml +++ b/inst/Upgrades.qml @@ -1318,4 +1318,77 @@ Upgrades ChangeRename { from: "reportDate"; to: "reportDateText"} ChangeRename { from: "reportReportedBy"; to: "reportPerformedByText"} } + + // DoE Analysis + Upgrade + { + functionName: "doeAnalysis" + fromVersion: "0.18.3" + toVersion: "0.19.0" + + // Split dependent variable + ChangeRename + { + from: "dependent" + to: "dependentFactorial" + condition: function(options) + { + return options["designType"] == "factorialDesign" + } + } + + ChangeRename + { + from: "dependent" + to: "dependentResponseSurface" + condition: function(options) + { + return options["designType"] == "responseSurfaceDesign" + } + } + + // Split discrete factor variable + ChangeRename + { + from: "fixedFactors" + to: "fixedFactorsFactorial" + condition: function(options) + { + return options["designType"] == "factorialDesign" + } + } + + ChangeRename + { + from: "fixedFactors" + to: "fixedFactorsResponseSurface" + condition: function(options) + { + return options["designType"] == "responseSurfaceDesign" + } + } + + // Split continuous factor variable + ChangeRename + { + from: "continuousFactors" + to: "continuousFactorsFactorial" + condition: function(options) + { + return options["designType"] == "factorialDesign" + } + } + + ChangeRename + { + from: "continuousFactors" + to: "continuousFactorsResponseSurface" + condition: function(options) + { + return options["designType"] == "responseSurfaceDesign" + } + } + + ChangeRename { from: "continuousPredictors"; to: "continuousPredictorsPlots"} + } }