[rkward-cvs] SF.net SVN: rkward: [1716] trunk/rkward/rkward/plugins/uni1.2

tfry at users.sourceforge.net tfry at users.sourceforge.net
Fri Mar 23 14:14:59 UTC 2007


Revision: 1716
          http://svn.sourceforge.net/rkward/?rev=1716&view=rev
Author:   tfry
Date:     2007-03-23 07:14:59 -0700 (Fri, 23 Mar 2007)

Log Message:
-----------
Length and NAs

Modified Paths:
--------------
    trunk/rkward/rkward/plugins/uni1.2/code.php
    trunk/rkward/rkward/plugins/uni1.2/description.xml

Modified: trunk/rkward/rkward/plugins/uni1.2/code.php
===================================================================
--- trunk/rkward/rkward/plugins/uni1.2/code.php	2007-03-23 13:54:42 UTC (rev 1715)
+++ trunk/rkward/rkward/plugins/uni1.2/code.php	2007-03-23 14:14:59 UTC (rev 1716)
@@ -14,12 +14,10 @@
 	var <- eval (vars[[i]], envir=globalenv());
 	results[i, 'Variable Name'] <- rk.get.description(vars[[i]], is.substitute=TRUE)
 
-<?	if (getRK_val ("nombre")) { ?>
+<?	if (getRK_val ("length")) { ?>
 	results[i, 'Number of obs'] <- length(var)
+	results[i, 'Number of missing values'] <- sum(is.na(var))
 <?	}
-	if (getRK_val ("nbna")) { ?>
-	results[i, 'Number of missing values'] <- length(which(is.na(var)))
-<?	}
 	if (getRK_val ("mean")) { ?>
 	results[i, 'Mean'] <- mean(var,<? echo ($narm); ?>)
 <?	}

Modified: trunk/rkward/rkward/plugins/uni1.2/description.xml
===================================================================
--- trunk/rkward/rkward/plugins/uni1.2/description.xml	2007-03-23 13:54:42 UTC (rev 1715)
+++ trunk/rkward/rkward/plugins/uni1.2/description.xml	2007-03-23 14:14:59 UTC (rev 1716)
@@ -32,8 +32,7 @@
 			<tab label="Statistics" >
 				<frame label="General" >
 					<row>
-						<checkbox value_unchecked="0" checked="false" value="1" id="nombre" label="Number of observations" />
-						<checkbox value_unchecked="0" checked="false" value="1" id="nbna" label="Number of missing values" />
+						<checkbox value_unchecked="0" checked="false" value="1" id="length" label="Length and NAs" />
 					</row>
 				</frame>
 				<frame label="Moments" >


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list