s-news
[Top] [All Lists]

[S] crosstabs function problem

To: s-news@wubios.wustl.edu
Subject: [S] crosstabs function problem
From: Scott Longmore <longmore@fsl.noaa.gov>
Date: Wed, 15 Dec 1999 13:19:59 -0700 (MST)
Reply-to: Scott Longmore <longmore@fsl.noaa.gov>
Sender: owner-s-news@wubios.wustl.edu

Wrote the following routine...however It does still drops the
unused levels.

usage.crstb.cat<-function(usage.log,regexp) {
  return(crosstabs(~DepictDescript+Scale,
                   data=usage.log,                                              
 
                   subset=grep(regexp,usage.log$Category),
                   drop.unused.levels=F
                  )
        )
}

Any suggestions?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ 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] crosstabs function problem, Scott Longmore <=