Re: [Rd] About AHP (Analytic Hierachy process)

2006-03-19 Thread Simone Giannerini
To my knowledge there is not such a thing in R, but at
http://www.superdecisions.com
there is a free multiplatform software implemented by Saaty that does
AHP/ANP models.

Regards,

Simone

On 3/17/06, Omrani Hichem <[EMAIL PROTECTED]> wrote:
> Dear Sir,
>
> I wander if, it existes in R,a library or a routine for AHP (Analytic 
> Hiararchy
> Process). AHP is a kind of Multi criteria Analysis approach.
>
> Thanks, for help.
>
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>


--
__

Simone Giannerini
Dipartimento di Scienze Statistiche "Paolo Fortunati"
Universita' di Bologna
Via delle belle arti 41 - 40126  Bologna,  ITALY
Tel: +39 051 2098248  Fax: +39 051 232153
E-mail: [EMAIL PROTECTED]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Package dependencies when submitting to CRAN: policies?

2006-03-19 Thread hadley wickham
What is the policy for submitting packages that depend on external
non-R code?  We'd like to add Rggobi2 to CRAN, but since the CRAN
machine won't have GGobi, I wanted to check what the policy/procedures
are.

Regards,

Hadley

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] [R] Collapsing levels of a factor

2006-03-19 Thread Gregor Gorjanc
>> x <- factor(1:3, labels = c("b" , "f", "minus"))
>> x
> [1] b f minus
> Levels: b f minus
> 
> I want to change all "minus" to "b". I know that the simplest way to do this 
> is
> 
>> levels(x)  <- c("b", "f", "b")
> 
> and also that
> 
>>  x[x == "minus"] <- "b"
>> x <- factor(x)
> 
> works. But why not
> 
>> x <- ifelse(x == "minus", "b", x)
>> x <- factor(x)
> x
> [1] 1 2 b
> Levels: 1 2 b
> 

I find particulary usefull the list approach. Here is the example from
levels help page. I like this approach, since you can modify list and
apply it to a factor via levels.

  ## we can add levels this way:
 f <- factor(c("a","b"))
 levels(f) <- c("c", "a", "b")
 f

 f <- factor(c("a","b"))
 levels(f) <- list(C="C", A="a", B="b")
 f

I was playing around this last week and wrote a simple function[1],
which can save you some work in getting such a list from a factor. Is R
core interested in it?

[1]http://www.bfro.uni-lj.si/MR/ggorjan/software/R/ggmisc/factorMap.R

-- 
Lep pozdrav / With regards,
Gregor Gorjanc

--
University of Ljubljana PhD student
Biotechnical Faculty
Zootechnical Department URI: http://www.bfro.uni-lj.si/MR/ggorjan
Groblje 3   mail: gregor.gorjanc  bfro.uni-lj.si

SI-1230 Domzale tel: +386 (0)1 72 17 861
Slovenia, Europefax: +386 (0)1 72 17 888

--
"One must learn by doing the thing; for though you think you know it,
 you have no certainty until you try." Sophocles ~ 450 B.C.

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Package dependencies when submitting to CRAN: policies?

2006-03-19 Thread Uwe Ligges
hadley wickham wrote:

> What is the policy for submitting packages that depend on external
> non-R code?  We'd like to add Rggobi2 to CRAN, but since the CRAN
> machine won't have GGobi, I wanted to check what the policy/procedures
> are.

I think it is worth to discuss this topic with the CRAN maintainers 
(hence Kurt Hornik, in particular).

I will come back to this in a separate thread off-list.

Uwe Ligges


> Regards,
> 
> Hadley

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel