[education/rkward] /: Change label for length of sample in descriptive stats plugin

Thomas Friedrichsmeier null at kde.org
Fri Jun 3 16:30:53 BST 2022


Git commit a0df2cd7b035a018d6632c3153e4e23478ef56c7 by Thomas Friedrichsmeier.
Committed on 03/06/2022 at 15:30.
Pushed by tfry into branch 'master'.

Change label for length of sample in descriptive stats plugin

M  +1    -1    rkward/plugins/descriptive/descriptive_statistics.js
M  +1    -1    rkward/plugins/descriptive/descriptive_statistics.rkh
M  +1    -1    rkward/windows/rkworkplace.cpp
M  +1    -1    scripts/makeppa_upload.sh
M  +1    -1    tests/analysis_plugins/descriptive_stats.rkout

https://invent.kde.org/education/rkward/commit/a0df2cd7b035a018d6632c3153e4e23478ef56c7

diff --git a/rkward/plugins/descriptive/descriptive_statistics.js b/rkward/plugins/descriptive/descriptive_statistics.js
index fbb2e063..ffdb0746 100644
--- a/rkward/plugins/descriptive/descriptive_statistics.js
+++ b/rkward/plugins/descriptive/descriptive_statistics.js
@@ -62,7 +62,7 @@ function calculate () {
 		echo (', na.rm=TRUE))\n');
 	}
 	if (getValue ("length")) {
-		echo ('	results[i, ' + i18n ("length of sample") + '] <- length (var)\n');
+		echo ('	results[i, ' + i18n ("total length (N)") + '] <- length (var)\n');
 		echo ('	results[i, ' + i18n ("number of NAs") + '] <- sum (is.na(var))\n');
 	}
 	echo ('}\n');
diff --git a/rkward/plugins/descriptive/descriptive_statistics.rkh b/rkward/plugins/descriptive/descriptive_statistics.rkh
index d20f7ce4..3637af41 100644
--- a/rkward/plugins/descriptive/descriptive_statistics.rkh
+++ b/rkward/plugins/descriptive/descriptive_statistics.rkh
@@ -30,7 +30,7 @@
 		<setting id="range">Compute the range, i.e. lowest and highest value</setting>
 		<setting id="sum">Compute the sum of all values</setting>
 		<setting id="prod">Compute the product of all values</setting>
-		<setting id="length">Count the total length of values, and the number of missing values (NAs)</setting>
+		<setting id="length">Count the total number of values, and the number of missing values (NAs)</setting>
 	</settings>
 	<related>
 		<ul>
diff --git a/rkward/windows/rkworkplace.cpp b/rkward/windows/rkworkplace.cpp
index f9117906..d4692c13 100644
--- a/rkward/windows/rkworkplace.cpp
+++ b/rkward/windows/rkworkplace.cpp
@@ -61,7 +61,7 @@ RKWorkplace::RKWorkplace (QWidget *parent) : QWidget (parent) {
 	RK_ASSERT (main_workplace == 0);
 
 	main_workplace = this;
-	QDesktopServices::setUrlHandler("rkward", RKWorkplace::mainWorkplace(), "openRKWardUrl");
+	QDesktopServices::setUrlHandler("rkward", this, "openRKWardUrl");
 	_workspace_config = 0;
 	window_placement_override = RKMDIWindow::AnyWindowState;
 
diff --git a/scripts/makeppa_upload.sh b/scripts/makeppa_upload.sh
index f48ae8aa..42dff857 100755
--- a/scripts/makeppa_upload.sh
+++ b/scripts/makeppa_upload.sh
@@ -22,7 +22,7 @@ fi
 if [ "${1}" == "--stable" ]; then
 	shift
 	PPAIDS="rkward-stable rkward-stable-cran rkward-stable-backports-cran"
-	PPAVERSIONSTRING=".2rkward.stable"
+	PPAVERSIONSTRING=".3rkward.stable"
 else
 	PPAIDS="rkward-devel rkward-devel-cran"
 	PPAVERSIONSTRING=".0rkward.devel"
diff --git a/tests/analysis_plugins/descriptive_stats.rkout b/tests/analysis_plugins/descriptive_stats.rkout
index e12650cf..2e0ab989 100644
--- a/tests/analysis_plugins/descriptive_stats.rkout
+++ b/tests/analysis_plugins/descriptive_stats.rkout
@@ -10,7 +10,7 @@ DATE<br />
 </ul>
 <br />
 <table border="1">
-<tr><td>Object</td><td>mean</td><td>median</td><td>min</td><td>max</td><td>standard deviation</td><td>sum</td><td>product</td><td>Median Absolute Deviation</td><td>length of sample</td><td>number of NAs</td></tr>
+<tr><td>Object</td><td>mean</td><td>median</td><td>min</td><td>max</td><td>standard deviation</td><td>sum</td><td>product</td><td>Median Absolute Deviation</td><td>total length (N)</td><td>number of NAs</td></tr>
 <tr><td>height </td><td>65</td><td>65</td><td>58</td><td>72</td><td> 4.4721</td><td>975</td><td>1.5110e+27</td><td> 5.8512</td><td>15</td><td>0</td></tr>
 <tr><td>test10z</td><td>22</td><td>22</td><td> 4</td><td>40</td><td>12.1106</td><td>220</td><td>3.8051e+12</td><td>14.6280</td><td>11</td><td>1</td></tr>
 </table>


More information about the rkward-tracker mailing list