s-news
[Top] [All Lists]

Re: Strange hist() problem

To: Tim Hesterberg <timh@insightful.com>
Subject: Re: Strange hist() problem
From: Kim Elmore <Kim.Elmore@noaa.gov>
Date: Tue, 21 Nov 2006 14:31:25 -0600
Cc: S-News <s-news@wubios.wustl.edu>
In-reply-to: <SEWINEXCH00oG1VRIjn00000982@sewinexch00.insightful.com>
References: <7.0.1.0.2.20061121130523.05135e60@noaa.gov> <SEWINEXCH00oG1VRIjn00000982@sewinexch00.insightful.com>
Thanks, Tim.

Apologies to the list: yes, resample is loaded.

.resample.version yields: S+Resample library, Version 2.0, Beta Release 7, build date: Thu Jan 20 16:10:01 PST 2005

version yields: Enterprise Developer Version 7.0.6 for Microsoft Windows : 2005

masked() tells me: [1] ".Random.seed"     "samp.permute.old"

The second masked function is one that I wrote and should discard.

search() shows:
> search()
[1] "H:\\EnKF\\data" "resample" "bigdata" "splus" "stat" "data" [7] "trellis" "nlme3" "menu" "sgui" "winjava" "SPXML"
[13] "maps"           "main"

So resample appears to be loaded as it should be.

Is there a more recent version of resample?

Kim Elmore

At 01:36 PM 11/21/2006, you wrote:
This sounds like you might have some functions from the resample
library (that support weights) but not others.  Possibly the wrong
version of resample for S+7.0.

When this happens:
* is resample loaded?
* what version of resample?  And S-PLUS?  Do:
        .resample.version
        version
* Do you have any functions masked?  Do:
        masked()
* Where in the search list is resample loaded?  Do:
        search()

Tim Hesterberg

>I'm running S-Plus 7.0 under XP SP 2.  I'me experiencing problems
>with hist(). I've used hist plenty of times, but I've never seen this.
>
>Specifically, when I use the example given in the help file:
>
> > hist(state.region)
>
>I get the following error:
>
>Problem in tabulate: argument weights= not matched:
>tabulate(as.integer(unclass(x)), length(levels(x)), weights = weights)
>
>There is no "weights" argument for hist() that appears in the help
>file. I've never had this problem in the past.
>
>I recently had to replace the motherboard in this workstation and so
>had to re-host the S-Plus license, but I can't imagine how that would
>have affected internal functions like hist().
>
>How do I resolve this?
>
>Kim Elmore

                          Kim Elmore, Ph.D.
                       University of Oklahoma
        Cooperative Institute for Mesoscale Meteorological Studies
"All of weather is divided into three parts: Yes, No, and Maybe. The
greatest of these is Maybe" The original Latin appears to be garbled.


<Prev in Thread] Current Thread [Next in Thread>