s-news
[Top] [All Lists]

[S] Object not found within function

To: s-news@wubios.wustl.edu
Subject: [S] Object not found within function
From: Scott Longmore <longmore@fsl.noaa.gov>
Date: Wed, 22 Sep 1999 16:24:35 -0600 (MDT)
Reply-to: Scott Longmore <longmore@fsl.noaa.gov>
Sender: owner-s-news@wubios.wustl.edu
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

<Prev in Thread] Current Thread [Next in Thread>
  • [S] Object not found within function, Scott Longmore <=