[19295] in s-news-athena
[S] Object not found within function
daemon@ATHENA.MIT.EDU (Scott Longmore)
Wed Sep 22 18:32:31 1999
Message-Id: <199909222224.WAA08485@opal.fsl.noaa.gov>
Date: Wed, 22 Sep 1999 16:24:35 -0600 (MDT)
From: Scott Longmore <longmore@fsl.noaa.gov>
Reply-To: Scott Longmore <longmore@fsl.noaa.gov>
To: s-news@wubios.wustl.edu
Mime-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-Md5: diN9XF1Dou8dA5dzkoXM9g==
Here is the code:
usage.crosstab<-function(usage.log) {
class(usage.log$Category)<-"character"
categories<-unique(usage.log$Category)
rows<-match(usage.log$Category,categories[c(1,3:7,9)],nomatch=0)
crosstab<-crosstabs(~Category,data=usage.log,subset=rows>0)
return(crosstab)
}
Here is the calls and error:
> options(object.size=10000000)
> crp<-read.table("crp.prod.txt",sep=',')
> source("splus.funcs")
> usage.crosstab(crp)
Problem in eval(substitute(subset), local = data): Object "rows" not found
Use traceback() to see the call stack7565040
Any suggestions? The data object "usage.log" it is working with is
7565040 bytes. The only thing I can think of is some kind of memory
problem in splus. I am using Splus 5.0 Release 2 for Solaris 2.6.
Scott
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Scott Longmore - CIRA Research Associate \\\\\\\\\\\\ | ~
~ DOC\NOAA\OAR\FSL\MD\E-Team & FSL\RRV Project \\\\\\\\\ - * - ~
~ 325 Broadway R/E/FS6, 2C311 DSRC ~\__n__\ | ~
~ Boulder, CO 80303 USA \\\\\\\ ~
~ E-mail: longmore@fsl.noaa.gov \MMMM\ ~
~ URL: http://www-md.fsl.noaa.gov/~longmore \\\\\ ~
~ Phone: (303) 497-6443 Fax: (303) 497-3096 \\\\\Dust\Devil/~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In the immortal words of Socrates..."I drank what?" -Chris Knight-
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news