Re: [R] optimization subject to constraints

2010-08-09 Thread Dwayne Blind
Hi ! Why not constrOptim ? Dwayne 2010/8/9 Gildas Mazo > Dear R users, > > I'm looking for tools to perform optimization subject to constraints, > both linear and non-linear. I don't mind which algorithm may be used, my > primary aim is to get something general and easy-to-use to study simples

Re: [R] if several expressions (basic question)

2010-08-09 Thread Dwayne Blind
Thanks to all of you. Dwayne 2010/8/9 David Winsemius > > On Aug 9, 2010, at 12:29 PM, Joshua Wiley wrote: > > On Mon, Aug 9, 2010 at 9:26 AM, David Winsemius >> wrote: >> >>> >>> On Aug 9, 2010, at 12:14 PM, Joshua Wiley wrote: >>> >>&

[R] if several expressions (basic question)

2010-08-09 Thread Dwayne Blind
Dear R users, I have a basic question. In an "if statement", when several expressions have to be evaluated, they must be put inside curly braces, right ? For example : if (x>2) { y=3 z=2 } Thank you very much, Dwayne [[alternative HTML version deleted]]

Re: [R] curve

2010-04-16 Thread Dwayne Blind
.org > 801.408.8111 > > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > > project.org] On Behalf Of Duncan Murdoch > > Sent: Thursday, April 15, 2010 7:29 AM > > To: Dwayne Blind > > Cc: r-help@r-project.org

[R] curve

2010-04-14 Thread Dwayne Blind
Dear R users, How can I use "curve" with a function of two variables ? Thank you very much, Dwayne [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the postin

Re: [R] text editors

2010-03-01 Thread Dwayne Blind
7;s not as scary as it used to be. > > For Windows I recommend > > http://vgoulet.act.ulaval.ca/en/ressources/emacs/ > > > > -Ista > > > > On Fri, Feb 26, 2010 at 11:10 AM, Dwayne Blind > wrote: > > > Dear all, > > > > > > Do you use a t

[R] text editors

2010-02-26 Thread Dwayne Blind
Dear all, Do you use a text editor ? What would you recommend for Windows users ? What about Tinn-R ? Thank you very much, Dwayne [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] import from stata

2009-04-15 Thread Dwayne Blind
Thank you very much Jorge, Phil and Stas. It is not the first time Phil ;-) 2009/4/15 Stas Kolenikov > You need a full name in quotes: > > auto <- read.dta("C:/Stata10/ado/base/a/auto.dta") > > works just fine on my computer. > > On 4/14/09, Dwayne Blind wrot

[R] import from stata

2009-04-14 Thread Dwayne Blind
Dear R users, I am trying to import a table from STATA, a dta file. With a table called "table", this is what I do : library("foreign") read.dta(table) It does not work. What am I doing wrong ? Best Regards, Dwayne [[alternative HTML version deleted]]

Re: [R] default values

2008-03-13 Thread Dwayne Blind
Thanks a lot. You were right :-) Professor Ripley can I use your SPLUS book for R too ? 2008/3/12, Prof Brian Ripley <[EMAIL PROTECTED]>: > > On Wed, 12 Mar 2008, Dwayne Blind wrote: > > > > Dear R users, > > > > I wrote the following toy example to ex

[R] default values

2008-03-12 Thread Dwayne Blind
Dear R users, I wrote the following toy example to explain my problem : a=0 f=function(x,y,z) { if (a==0) x[1]+x[2]+y if (a!=0) x[1]+x[2]+y+z } f(1:2,3) I have not specified z and I get an error. Although a=0, R seems to want to know z because it's in the expression x[1]+x[2]+y+z. So I