[R] Failure when updating package nlme

2006-02-16 Thread CG Pettersson
Hello all,

R2.2.1, W2k

I posted a similar question last week after having problem with a group
update (using update.packages()), without getting any answer.

Now I have updated all packages separately, and found that the problem
comes from nlme:

Everything comes home, the md5 checksums are ok, but then the old version
can´t be removed from my computer, leaving a nlme library with only the
libs sublibrary left.

As my R doesn´t start without nlme, I am stuck here. R doesn´t start with
only the libs left and doesn´t start without nlme. What´s going on?

It´s no big crisis as I have the nlme version from the R installation
file, but I try to keep my installation as updated as possible, so it´s
irritating. :)

/CG


-- 
CG Pettersson, MSci, PhD Stud.
Swedish University of Agricultural Sciences (SLU)
Dep. of Crop Production Ekology. Box 7043.
SE-750 07 Uppsala, Sweden
[EMAIL PROTECTED]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Ubuntu and R

2006-02-16 Thread Tyler Smith
You could try the stable/sarge backport from Cran. That's less likely 
to cause problems than using the Etch version, but I'm not using Ubuntu 
so I can't confirm this. Add the following to your sources.list and see 
how it goes:

 deb http://cran.R-project.org/bin/linux/debian stable/

-- 
Tyler Smith

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] segmentation fault with Hmisc areg.boot()

2006-02-16 Thread Frank E Harrell Jr
Martin Henry H. Stevens wrote:
 Hi Folks,
 Mac OS 10.4.4
 R 2.2.1(2005-12-20 r36812)
 Hmisc 3.0-10
 acepack 1.3-2.2
 
 I keep getting a segmentation fault when trying to run areg.boot in  
 the Hmisc package. I include below output from two different attempts.
 Thank you in advance for any help.
 
 Hank Stevens
 
 The following is taken from the example in the areg.boot  
 documentation, run inside Aquamacs Emacs:
 
   set.seed(171)  # to be able to reproduce example
   x1 - rnorm(200)
   x2 - runif(200)  # a variable that is really unrelated to y]
   x3 - factor(sample(c('cat','dog','cow'), 200,TRUE))  # also  
 unrelated to y
   y  - exp(x1 + rnorm(200)/3)
   f  - areg.boot(y ~ x1 + x2 + x3, B=40)

Works fine on debian linux with same versions

Frank

P.S.  In future it's best to omit prompts from lines of code for easy 
pasting into the R prompt.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] getting probabilities from SVM

2006-02-16 Thread roger bos
Finally figured it out.  You have to extract it from the attributes.
Tricky.  Thanks anyway.

 attr(pred, prob)[1:10,]


On 2/16/06, roger bos [EMAIL PROTECTED] wrote:

 I am using SVM to classify categorical data and I would like the
 probabilities instead of the classification.  ?predict.svm says that its
 only enabled when you train the model with it enabled, so I did that, but it
 didn't work.  I can't even get it to work with iris.  The help file shows
 that probability = TRUE when training the model, but doesn't show an
 example.  Then I try to predict with probabilities, I still only get
 classifications back.  Anyone get this to work and can help me out?


 Thanks,

 Roger

 attach(iris)

  # alternatively the traditional interface:
  x - subset(iris, select = -Species)
  y - Species
  model - svm(x, y, probability = TRUE)
  pred - predict(model, x, probability = TRUE)


[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Ubuntu and R

2006-02-16 Thread Chris Lawrence
On 2/16/06, Clint Harshaw [EMAIL PROTECTED] wrote:
 I've recently installed Ubuntu 5.10 on a desktop and need R installed,
 however, even after uncommenting the repos associated with universe,
 backports and multiverse, the packages available for Ubuntu are somewhat
 out of date:

 [EMAIL PROTECTED]:~$ apt-cache policy r-base r-base-core
 r-base:
Installed: (none)
Candidate: 2.1.1-1
Version table:
   2.1.1-1 0
  500 http://archive.ubuntu.com breezy/universe Packages
 r-base-core:
Installed: (none)
Candidate: 2.1.1-1
Version table:
   2.1.1-1 0
  500 http://archive.ubuntu.com breezy/universe Packages

 How should I edit my /etc/apt/sources.list so that I can proplery
 maintain a current version of R, and not break my system? I've searched
 the forums at Ubuntu, and there are several similar requests there, but
 no definitive answer that I found.

 What are other Ubuntu users here doing to keep their version of R fresh?

I suspect the 2.2.x packages from Debian testing and/or unstable would
run fine on breezy (I don't think there's been any libc6 changes that
would affect things); you could always rebuild from the Debianized
sources for Ubuntu if they don't.

You could use apt pins to make sure that only the R packages from
Debian are pulled in, if you want to use apt to keep it up to date
from Debian's archive.

Something like the following in /etc/apt/preferences should work:

Package: r-*
Pin: release o=Debian
Pin-Priority: 500

Package: *
Pin: release o=Debian
Pin-Priority: -1

Then add a line for the Debian mirror of your choice to
/etc/apt/sources.list, using either testing or unstable as your
release.


Chris

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Problem with scoping a variable value

2006-02-16 Thread Tolga Uzuner
You are a star... that was it. Many thanks,
Tolga

-Original Message-
From: Gabor Grothendieck [mailto:[EMAIL PROTECTED] 
Sent: 16 February 2006 20:24
To: Tolga Uzuner
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] Problem with scoping a variable value

Without a reproducible example one can only guess but
perhaps the problem is not show but that you have a variable
F.  Try writing out F as FALSE.


On 2/16/06, Tolga Uzuner [EMAIL PROTECTED] wrote:
 Hi there,

 I have a function which has a variable called show as an input:

 richardson.grad - function(func, x, d=0.01, eps=1e-4, r=6, show=F){
 # do some things
   if(show) {

cat(\n,first order approximations, \n)
print(a.mtr, 12)


}
 #do more things and return
 }

 The show variable is being used as a flag to show intermediate results.

 Interestingly enough, I have downloaded a package recently which defines
 the show variable as a function:

   show
 standardGeneric for show defined from package methods

 function (object)
 standardGeneric(show)
 environment: 01676F7C
 Methods may be defined for arguments: object

  

 Now, all of a sudden, the function I had defined earlier is scoping up
 to this new value, and is thus not working:

   richardson.grad(function(x) x^2,2)
 Error in if (show) { : argument is not interpretable as logical
  

 I could always redefine show in richardson.grad to be something else but
 something seems wrong: why is richardson.grad not looking up show's
 value in the  function ? How would I fix this ?

 Thanks in advance,
 Tolga

 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html


__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] How to change the number of bins in hist function?

2006-02-16 Thread Michael
Hi all,

I am doing histogram using the hist function. For some reason, the
histogram does not look good... is there a way I can change the number of
bins, and/or change the way that data gets binned... so that I can obtain a
better looking histogram?

Thanks a lot!

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] how to make plot output to JPG or GIF

2006-02-16 Thread Uwe Ligges
Richard Evans wrote:
 Hello,
 
 How does one write PLOT() commands that make individual graphic files of
 plots that are currently generated to the graphics output window of a
 session?
 
 Currently, I have a chron-job that generates a new data input files once
 every hour. My goal is to then automatically run my source.r file with
 the plot commands which then automatically generates a web-ready graphic
 file in a folder for my server.


See ?bitmap

Uwe Ligges


 thanks!
 -revansx
 
 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html