Re: [R] 'initial value not feasible' in constrOptim

2007-09-08 Thread Ingmar Visser
rror and > fit.error.grr and have pretty reasonable result. That doesn't mean the constraint is satisfied, which depends on the values of ui and ci but they are not provided so it's hard to tell where the problem is. hth, Ingmar > I inequality "ui %*% theta > - ci >=

[R] predict.arima

2007-09-08 Thread shao ran
Hi *, Firstly, thank you so much for your time to read my email. I am currently interested in how to use R to predict time series from models fitted by ARIMA. The package I used is basic stats package, and the method I used is predict.Arima. What I know is that ARIMA parameters are estimated

[R] statistical tests under serial dependence

2007-09-08 Thread Rosa Trancoso
Hello! I would like to know if there are already programmed statistical tests for data under serial dependence, for example, considering the variance inflation factor? Thank you very much Best regards Rosa __ R-help@stat.math.ethz.ch mailing list

Re: [R] Suppress 'x' when appending to a csv file

2007-09-08 Thread John Kane
t;[EMAIL PROTECTED]> wrote: > On Sat, 2007-09-08 at 11:41 -0400, John Kane wrote: > > Is there any convenient way to supress the x that > > appears in csv export files? I would like to be > able > > to export a file and add a comment to it yet still > be > > able

Re: [R] Problem in installing packages on linux machine...

2007-09-08 Thread tkobayas
Hi, Still got the same error message. I did "su R" when I got the error message for the first time. I have never seen this error message. I will be googling for solutions as well... Thank you. Quoting Henrique Dallazuanna <[EMAIL PROTECTED]>: > Hi, try install

Re: [R] Problem in installing packages on linux machine...

2007-09-08 Thread Henrique Dallazuanna
Hi, try install packages whit 'sudo'. $sudo R -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O On 08/09/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > > I am trying to install RSQLite package on my Fedora

Re: [R] Problem in installing packages on linux machine...

2007-09-08 Thread tkobayas
ibrary path before when I was using Fedora Core 6. Warning in install.packages("RSQLite") : argument 'lib' is missing: using '/usr/lib/R/library' --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done trying URL 'http://cra

Re: [R] Using clustering functions

2007-09-08 Thread Uwe Ligges
raries? > Thanks! Both "stats" and "cluster" are packages, not libraries. You need to call library("cluster") in order to load package cluster from your library before using agnes() and her friends. Uwe Ligges __ R-help@

Re: [R] Suppress 'x' when appending to a csv file

2007-09-08 Thread Marc Schwartz
On Sat, 2007-09-08 at 11:41 -0400, John Kane wrote: > Is there any convenient way to supress the x that > appears in csv export files? I would like to be able > to export a file and add a comment to it yet still be > able to read it back into R. I don't see any way to > g

[R] Suppress 'x' when appending to a csv file

2007-09-08 Thread John Kane
Is there any convenient way to supress the x that appears in csv export files? I would like to be able to export a file and add a comment to it yet still be able to read it back into R. I don't see any way to get rid of the x that seperates the different appended parts. Thanks EXAMPLE x

Re: [R] R first.id last.id function error

2007-09-08 Thread Gerard Smits
3 6FALSETRUE >19 7 21 7 TRUE FALSE >20 7 22 8FALSETRUE >21 8 21 9 TRUETRUE >22 9 21 4 TRUE FALSE >23 9 22 5FALSETRUE > > > > > > >On 9/7/07, Gerard Smits <[EMAIL PROTECTED]

Re: [R] Lisp-like primitives in R

2007-09-08 Thread François Pinard
[Peter Dalgaard] >[François Pinard] >>I meant that R might have implemented a Scheme engine [...] with >>a surface language [...] which is purposely not Scheme, but could have >>been. [...] one could dare dreaming that the Scheme engine in R be >>"comp

Re: [R] confusion matrix - better code?

2007-09-08 Thread Monica Pisica
Michael, Thank you very much. My code is certainly put to shame by yours. I promise to read about factor to see how you use it and why ;-)) I really appreciate your help. Monica > Subject: RE: [R] confusion matrix - better code?> Date: Fri, 7 Sep 2007 > 15:36:00 -0500>

Re: [R] Running a PERL script from R

2007-09-08 Thread Dirk Eddelbuettel
on Windows, you will need them to display/capture what is happening. Dirk | -Original Message- | From: Dirk Eddelbuettel [mailto:[EMAIL PROTECTED] | Sent: Friday, September 07, 2007 1:11 PM | To: Pierce, Ken | Cc: r-help | Subject: Re: [R] Running a PERL script from R | | On Fri, Sep 07

Re: [R] Lisp-like primitives in R

2007-09-08 Thread Gabor Grothendieck
On 9/8/07, Peter Dalgaard <[EMAIL PROTECTED]> wrote: > François Pinard wrote: > > [Roland Rau] > > > >> [François Pinard] > >> > > > > > >>> I wonder what happened, for R to hide the underlying Scheme so fully, > >>> a

Re: [R] Running a PERL script from R

2007-09-08 Thread Paul Hiemstra
Dear Ken. You could also try and use RSPerl (http://www.omegahat.org/RSPerl/). It allows one to use R commands in Perl and vice-versa. regards, Paul Pierce, Ken schreef: > Is there a way to run a simple perl script from R? > > > Kenneth B. Pierce Jr. > > Research Ecolo

Re: [R] genoud problem

2007-09-08 Thread Jasjeet Singh Sekhon
Associate Professor Travers Department of Political Science Survey Research Center UC Berkeley http://sekhon.berkeley.edu/ V: 510-642-9974 F: 617-507-5524 === Shubha Vishwanath Karanth writes: > Hi R us

Re: [R] argument 'lib' is missing: using '/usr/lib/R/library'

2007-09-08 Thread Paul Smith
On 9/8/07, Gabor Csardi <[EMAIL PROTECTED]> wrote: > Paul, what is the question? If the question is why you get this > warning message, the reason is that the 'lib' argument is missing > and install.packages is using '/usr/lib/R/library'. > > If you want

Re: [R] Help with color coded bar graph

2007-09-08 Thread Jim Lemon
t;n",axes=FALSE) gradient.rect(-1,-0.1,1,0.1,col=grey(c(0.1,0.5,0.9))[A+2]) Jim __ 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 and provide commented, minimal, self-contained, reproducible code.

Re: [R] Matlab's lsqnonlin

2007-09-08 Thread Katharine Mullen
page: http://www.nat.vu.nl/~kate/ > > > KateM> On Fri, 7 Sep 2007, Jose Luis Aznarte M. wrote: > > >> Hi! I'm translating some code from Matlab to R and I found a problem. > >> I need to translate Matlab's function 'lsqnonlin' > &g

Re: [R] R survey package again

2007-09-08 Thread James Reilly
es Reilly Department of Statistics, University of Auckland Private Bag 92019, Auckland, New Zealand __ 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 an

Re: [R] argument 'lib' is missing: using '/usr/lib/R/library'

2007-09-08 Thread Gabor Csardi
Paul, what is the question? If the question is why you get this warning message, the reason is that the 'lib' argument is missing and install.packages is using '/usr/lib/R/library'. If you want to get rid of the warning supply the 'lib' argument. Gabor On Sat, Se

[R] argument 'lib' is missing: using '/usr/lib/R/library'

2007-09-08 Thread Paul Smith
Dear All, When installing packages, I get the following warning: > install.packages("sqldf") Warning in install.packages("sqldf") : argument 'lib' is missing: using '/usr/lib/R/library' Any ideas? The details of my R installation are: > versi

Re: [R] Matlab's lsqnonlin

2007-09-08 Thread Martin Maechler
01; it has been possible to get KateM> to the MINPACK implementation of Levenberg-Marquardt within R via the KateM> package minpack.lm KateM> (http://cran.r-project.org/src/contrib/Descriptions/minpack.lm.html) since KateM> 2005. Thanks a lot, Kate. I'm wondering abou

Re: [R] FW: variable format

2007-09-08 Thread Martin Becker
Martin >> a <- NULL >> a$divisionOld <- c(0,1,2,3,4,5) >> a$divisionNew <- >> as.character(factor(a$divisionOld,levels=divisionTable[,1],labels=divisionTable[,2])) >> >> >> a$divisionNew >> >> [1] NA "New England"

Re: [R] enable object name to be called as object (a dataset)

2007-09-08 Thread Jim Price
obj[i] > data <- cbind(data,newdata [[1]] ) > } > > Obviously, it doesn't work since obj[i] is just a string of dataset name. > Here is my question: how to call it as a original dataset? Thanks. > -- View this message in context: http://

Re: [R] Plotting lines to sets of points

2007-09-08 Thread Jim Price
')) A more complete example might loop over all the unique elements of framename$hit_traj, and then run this procedure for each value with a different colour, plotting both ball points and trajectories. lawnboy34 wrote: > > I am using R to plot baseball spray charts from play-by-play

[R] Covariates and clustering of extremes

2007-09-08 Thread Dag J. Steinskog
question then. In advance, thanks for all help! -- View this message in context: http://www.nabble.com/Covariates-and-clustering-of-extremes-tf4396856.html#a12538022 Sent from the R help mailing list archive at Nabble.com. __ R-help@stat.math.ethz.ch

[R] Using clustering functions

2007-09-08 Thread uv
message in context: http://www.nabble.com/Using-clustering-functions-tf4401159.html#a12554686 Sent from the R help mailing list archive at Nabble.com. ______ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the p

Re: [R] Lisp-like primitives in R

2007-09-08 Thread Peter Dalgaard
François Pinard wrote: > [Roland Rau] > >> [François Pinard] >> > > >>> I wonder what happened, for R to hide the underlying Scheme so fully, >>> at least at the level of the surface language (despite there are >>> hints). >

Re: [R] SQL like function?

2007-09-07 Thread Gabor Grothendieck
Great. Regarding the web, note that there are actually quite a few R web projects as well: http://www.lmbe.seu.edu.cn/CRAN/doc/FAQ/R-FAQ.html#R-Web-Interfaces I have used rpad (www.rpad.org) which has an integrated web server right in the R package making setup a non-issue. On 9/8/07

Re: [R] SQL like function?

2007-09-07 Thread Takatsugu Kobayashi
ing your comment about > SQL, you can use SQL to manipulate R data frames using the sqldf package > which provides an interface to lower level RSQLite (and RMySQL in the future) > routines. The following examples use SQLite underneath: > > DF <- data.frame(observation

[R] ggplot legend consolidation

2007-09-07 Thread Te, Kaom
eview by Schwab personnel. ______ 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 and provide commented, minimal, self-contained, reproducible code.

Re: [R] R first.id last.id function error

2007-09-07 Thread Gabor Grothendieck
A slightly easier way to construct first and last if the vector x is sorted (as is assumed in SAS) is: first <- !duplicated(x) last <- !duplicated(x, fromLast = TRUE) where the fromLast= argument is added in R 2.6.0. On 9/7/07, Gerard Smits <[EMAIL PROTECTED]> wrote: > Hi

Re: [R] Lisp-like primitives in R

2007-09-07 Thread François Pinard
[Roland Rau] >[François Pinard] >>I wonder what happened, for R to hide the underlying Scheme so fully, >>at least at the level of the surface language (despite there are >>hints). >"To further foster portability, we chose to write R in ANSI C" Yes,

Re: [R] Lisp-like primitives in R

2007-09-07 Thread François Pinard
iels-bpi.ca __ 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 and provide commented, minimal, self-contained, reproducible code.

Re: [R] Problem with the aggregate command

2007-09-07 Thread jim holtman
> Thanks in advance > Regards > > Anup > > > > > - > >[[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

Re: [R] remove particular elements in a vector

2007-09-07 Thread jim holtman
53 NA NA 56 NA 58 59 NA 61 62 NA 64 NA NA 67 68 NA NA 71 NA 73 > 74 NA > [76] 76 77 NA 79 NA NA 82 83 NA NA 86 NA 88 89 NA 91 92 NA 94 NA NA 97 98 > NA NA > > -- > View this message in context: > http://www.nabble.com/remove-particular-eleme

[R] Problem with the Aggregate command (PS)

2007-09-07 Thread Anup Nandialath
]] __ 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 and provide commented, minimal, self-contained, reproducible code.

Re: [R] Plotting lines to sets of points

2007-09-07 Thread jim holtman
?segments On 9/7/07, lawnboy34 <[EMAIL PROTECTED]> wrote: > > I am using R to plot baseball spray charts from play-by-play data. I have > used the following command to plot the diamond: > > plot (0:250, -250:0, type="n", bg="white") >lines(c(125

Re: [R] R first.id last.id function error

2007-09-07 Thread jim holtman
E 21 8 21 9 TRUETRUE 22 9 21 4 TRUE FALSE 23 9 22 5FALSETRUE > > On 9/7/07, Gerard Smits <[EMAIL PROTECTED]> wrote: > Hi R users, > > I have a test dataframe ("file1," shown below) for which I am trying > to create a fl

[R] Problem with the aggregate command

2007-09-07 Thread Anup Nandialath
tive 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 and provide commented, minimal, self-contained, reproducible code.

Re: [R] How to obtain parameters of a mixture model of two lognormal distributions

2007-09-07 Thread Charles C. Berry
RSiteSearch("fit mixture"). Chuck p.s. if all you want is to 'fit data', try the logspline package or any of the other density estimation tools in R or on CRAN. > >> version > _ > platform i386-pc-mingw32 > arch i386 > os

Re: [R] Running a PERL script from R

2007-09-07 Thread Charles C. Berry
ot;hello.pl" ) > system("perl hello.pl") Hello World > Maybe a path issue? > > -Original Message- > From: Dirk Eddelbuettel [mailto:[EMAIL PROTECTED] > Sent: Friday, September 07, 2007 1:11 PM > To: Pierce, Ken > Cc: r-help > Subject: Re: [R] Runni

[R] sqldf rocks

2007-09-07 Thread Wensui Liu
mpute/blog) __ 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 and provide commented, minimal, self-contained, reproducible code.

[R] remove particular elements in a vector

2007-09-07 Thread kevinchang
ge in context: http://www.nabble.com/remove-particular-elements-in-a-vector-tf4404489.html#a12565480 Sent from the R help mailing list archive at Nabble.com. ______ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read th

Re: [R] negative value for AIC and BIC

2007-09-07 Thread Mike Meredith
BIC criteria for a particular >> model that I have >> developped... >> >> I don't remember to have negative values for these crietria for others >> applications, so I am a >> little suprised... Could anyone tell me if something is wrong or his >> conc

[R] Plotting lines to sets of points

2007-09-07 Thread lawnboy34
I am using R to plot baseball spray charts from play-by-play data. I have used the following command to plot the diamond: plot (0:250, -250:0, type="n", bg="white") lines(c(125,150,125,100,125),c(-210,-180,-150,-180,-210), col=c("black")) I have also p

Re: [R] Optimization under an absolute value constraint

2007-09-07 Thread Paul Smith
On 9/7/07, Phil Xiang <[EMAIL PROTECTED]> wrote: > I need to optimize a multivariate function f(w, x, y, z, ...) under an > absolute value constraint. For instance: > > min { (2x+y) (w-z) } > > under the constraint: > > |w| + |x| + |y| + |z| = 1.0 . > &g

[R] R first.id last.id function error

2007-09-07 Thread Gerard Smits
Hi R users, I have a test dataframe ("file1," shown below) for which I am trying to create a flag for the first and last ID record (equivalent to SAS first.id and last.id variables. Dump of file1: > file1 id rx week dv1 1 1 11 1 2 1 12 1 3 1 13 2

Re: [R] tcl/tk help

2007-09-07 Thread Gabor Csardi
See http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html#TclTk-issues Gabor On Fri, Sep 07, 2007 at 05:59:31PM -0400, Jon Loehrke wrote: > I am running R 2.5 on a Mac platform and have a difficulty loading the > Tcl/Tk package. > > Specifically: > > R>library(tcltk) >

Re: [R] enable object name to be called as object (a dataset)

2007-09-07 Thread Giovanni Petris
gt; -- > View this message in context: > http://www.nabble.com/enable-object-name-to-be-called-as-object-%28a-dataset%29-tf4403933.html#a12563767 > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@stat.math.et

Re: [R] Help with color coded bar graph

2007-09-07 Thread Luis Naver
ensuring that the x >> and y >> axes are consistent with the second call. >> >> Alternatively, you can use barplot2() in the gplots CRAN package >> to do >> this in a single call, as it has an argument to color the plot >> region. > > Actually, here

Re: [R] enable object name to be called as object (a dataset)

2007-09-07 Thread Gabor Csardi
gt; for ( i in 1:3){ > newdata <- obj[i] > data <- cbind(data,newdata [[1]] ) > } > > Obviously, it doesn't work since obj[i] is just a string of dataset name. > Here is my question: how to call it as a original dataset? Thanks. > -- > View this message in context:

[R] tcl/tk help

2007-09-07 Thread Jon Loehrke
I am running R 2.5 on a Mac platform and have a difficulty loading the Tcl/Tk package. Specifically: R>library(tcltk) Loading Tcl/Tk interface ... Error in fun(...) : couldn't connect to display ":0" Error : .onLoad failed in 'loadNamespace' for 'tcltk' Er

[R] enable object name to be called as object (a dataset)

2007-09-07 Thread runner
ble.com/enable-object-name-to-be-called-as-object-%28a-dataset%29-tf4403933.html#a12563767 Sent from the R help mailing list archive at Nabble.com. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do r

[R] multiphasic growth curve analysis

2007-09-07 Thread Peter B. Mandeville
Dear Petr, I tried replying directly to you but my communication was rejected as spam. On second thought, it is possible that it is. Thank you very much for taking the time and interest to answer my enquiry to the R Help Group. My interest isn’t so much in the particular data set as

Re: [R] Running a PERL script from R

2007-09-07 Thread Pierce, Ken
I've tried various configurations of .script, system and shell to no avail. It seems to pause and run "something" but then no output is created. -Original Message- From: Dirk Eddelbuettel [mailto:[EMAIL PROTECTED] Sent: Friday, September 07, 2007 1:11 PM To: Pierce,

[R] How to obtain parameters of a mixture model of two lognormal distributions

2007-09-07 Thread Jacques Wagnor
. > version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 2 minor 5.1 year 2007 month 06 day27 svn rev42083 language R version.string R version 2.

[R] 'initial value not feasible' in constrOptim

2007-09-07 Thread Yuchen Luo
ble result. I inequality "ui %*% theta - ci >= 0" as suggested in the R manual and it is satisfied. In case that this is a typo of the manual, I let ui=-ui and ci=-ci and try constrOptim again but the same warning message pops up. Could you please point me a way out of this? I am actuall

Re: [R] Help with color coded bar graph

2007-09-07 Thread Marc Schwartz
in the gplots CRAN package to do > this in a single call, as it has an argument to color the plot region. Actually, here is an easier way: barplot(rep(1, length(A)), col = ifelse(A == 0, "black", grey(0.9)), space = 0, border = 0) Just set 'col' based upon the valu

Re: [R] Help with color coded bar graph

2007-09-07 Thread Achim Zeileis
e. barplot) to take advantage of labels and multiple > series. Any help would be appreciated. > > - Luis Naver > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posti

Re: [R] Help with color coded bar graph

2007-09-07 Thread Marc Schwartz
ing that the x and y axes are consistent with the second call. Alternatively, you can use barplot2() in the gplots CRAN package to do this in a single call, as it has an argument to color the plot region. HTH, Marc Schwartz __ R-help@stat.math.ethz.ch mai

Re: [R] Running a PERL script from R

2007-09-07 Thread Dirk Eddelbuettel
On Fri, Sep 07, 2007 at 12:15:51PM -0700, Pierce, Ken wrote: > Is there a way to run a simple perl script from R? ?system Hth, Dirk -- Three out of two people have difficulties with fractions. __ R-help@stat.math.ethz.ch mailing list ht

Re: [R] plotting to stdout

2007-09-07 Thread Dirk Eddelbuettel
On Fri, Sep 07, 2007 at 02:27:00PM -0400, Duncan Murdoch wrote: > On 9/7/2007 2:15 PM, Gene Selkov wrote: > > Thanks a ton, Duncan! > > > > So I have verified that this line works: > > > >echo "postscript(file=\"\", command=\"cat\"

Re: [R] confusion matrix - better code?

2007-09-07 Thread Wolfgang Huber
(m+1),(m+1)] <- sum(cat[1:m,(m+1)]) > } > cat > [,1] [,2] [,3] [,4] [,5] > [1,]21003 > [2,]21003 > [3,] 00303 > [4,]01001 > [5,]4 330 10 > > The 5th row / col repr

[R] confusion matrix - better code?

2007-09-07 Thread Monica Pisica
th free downloads and an exclusive offer. It’s our way of saying thanks for using Windows Live™. [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the postin

[R] Help with color coded bar graph

2007-09-07 Thread Luis Naver
(0,0,0,0)) image(matrix(A), col=grey(c(0.1, 0.5, 0.9))) dev.off() However I would like to do this with one of the standard plotting tools (i.e. barplot) to take advantage of labels and multiple series. Any help would be appreciated. - Luis Naver __ R-help

Re: [R] Delete query in sqldf?

2007-09-07 Thread Gabor Grothendieck
All sqldf does is pass the command to sqlite and retrieve whatever it sends back translating the two directions to and from R. sqldf does not change the meaning of any sql statements. Perhaps the meaning you expect is desirable but its not how sqlite works. If sqlite were changed to adopt that

Re: [R] aggregate factor

2007-09-07 Thread ONKELINX, Thierry
, properly conducted, is a delicate dissection of uncertainties, a surgery of suppositions. ~M.J.Moroney > -Oorspronkelijk bericht- > Van: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Namens Bill Szkotnicki > Verzonden: vrijdag 7 september 2007 21:10 > Aan: r-help@st

[R] Running a PERL script from R

2007-09-07 Thread Pierce, Ken
Is there a way to run a simple perl script from R? Kenneth B. Pierce Jr. Research Ecologist Landscape Ecology, Modeling, Mapping and Analysis Team PNW Research Station - USDA-FS 3200 SW Jefferson Way, Corvallis, OR 97331 [EMAIL PROTECTED] 541 750-7393 http://www.fsl.orst.edu/lemma

[R] aggregate factor

2007-09-07 Thread Bill Szkotnicki
s the numeric value of Age but as.numeric and as.integer returns the level value instead. Is there a way to easily get the numeric value? I am using Windows R 2.5.1 Thanks, > str(fishdata) 'data.frame': 372 obs. of 6 variables: $ Lake: Factor w/ 3 levels "EVANS","JOLLIET&

Re: [R] FW: variable format

2007-09-07 Thread Frank E Harrell Jr
l" "West North Central" "South Atlantic" > > > Kind regards, > > Martin > > > Cory Nissen schrieb: >> >> >> Anybody? >> >> >> >> >> From: Cory Nis

Re: [R] Optimization under an absolute value constraint

2007-09-07 Thread roger koenker
, 2007, at 1:17 PM, Phil Xiang wrote: > I need to optimize a multivariate function f(w, x, y, z, ...) under > an absolute value constraint. For instance: > > min { (2x+y) (w-z) } > > under the constraint: > > |w| + |x| + |y| + |z| = 1.0 . > > Is there any R

Re: [R] plotting to stdout

2007-09-07 Thread Duncan Murdoch
On 9/7/2007 2:15 PM, Gene Selkov wrote: > Thanks a ton, Duncan! > > So I have verified that this line works: > >echo "postscript(file=\"\", command=\"cat\"); plot(0)" | r --vanilla > --slave > > Wonderful! (albeit a little unobvio

Re: [R] Automatic detachment of dependent packages

2007-09-07 Thread Duncan Murdoch
s="Depends") for currently attached >> packages to build the dependency tree and then work out which ones you >> can remove... There's a bit of recursive tree-walking in there, but it >> should be simple... Ummm... > > Thanks, Barry and Gabor. Please, look at

[R] Optimization under an absolute value constraint

2007-09-07 Thread Phil Xiang
I need to optimize a multivariate function f(w, x, y, z, ...) under an absolute value constraint. For instance: min { (2x+y) (w-z) } under the constraint: |w| + |x| + |y| + |z| = 1.0 . Is there any R function that does this? Thank you for your help! Phil Xiang

Re: [R] Delete query in sqldf?

2007-09-07 Thread Paul Smith
ved: > > > library(sqldf) > Loading required package: RSQLite > Loading required package: DBI > Loading required package: gsubfn > Loading required package: proto > > # overwrite with devel version of the sqldf.R file > > source("http://sqldf.googlecode.com/s

Re: [R] FW: variable format

2007-09-07 Thread Cory Nissen
artin Becker [mailto:[EMAIL PROTECTED] Sent: Fri 9/7/2007 10:55 AM To: Cory Nissen Cc: r-help@stat.math.ethz.ch Subject: Re: [R] FW: variable format Dear Cory, I am not familiar with SAS, but is this what you are looking for? divisionTable <- matrix(c(1, "New England",

Re: [R] plotting to stdout

2007-09-07 Thread Gene Selkov
Thanks a ton, Duncan! So I have verified that this line works: echo "postscript(file=\"\", command=\"cat\"); plot(0)" | r --vanilla --slave Wonderful! (albeit a little unobvious) --Gene On Fri, 7 Sep 2007, Duncan Murdoch wrote: > On 9/7/2007 12:36 PM, G

Re: [R] Matlab's lsqnonlin

2007-09-07 Thread Katharine Mullen
The thread you linked to regarding Levenberg-Marquardt's supposed lack of availability is from 2001; it has been possible to get to the MINPACK implementation of Levenberg-Marquardt within R via the package minpack.lm (http://cran.r-project.org/src/contrib/Descriptions/minpack.lm.html) since

Re: [R] Automatic detachment of dependent packages

2007-09-07 Thread Paul Smith
d on by the package you are detaching. You'd have to call > packageDescription("foo", fields="Depends") for currently attached > packages to build the dependency tree and then work out which ones you > can remove... There's a bit of recursive tree-walking i

Re: [R] Matlab's lsqnonlin

2007-09-07 Thread Daniel Lakeland
On Fri, Sep 07, 2007 at 08:34:45PM +0200, Jose Luis Aznarte M. wrote: > Hi! I'm translating some code from Matlab to R and I found a problem. > I need to translate Matlab's function 'lsqnonlin' > (http://www-ccs.ucsd.edu/matlab/toolbox/optim/lsqnonlin.html) i

[R] Matlab's lsqnonlin

2007-09-07 Thread Jose Luis Aznarte M.
Hi! I'm translating some code from Matlab to R and I found a problem. I need to translate Matlab's function 'lsqnonlin' (http://www-ccs.ucsd.edu/matlab/toolbox/optim/lsqnonlin.html) into R, and at the beginning I thought it would be the same as R's 'opt

Re: [R] Q: loess-like function that allows more predictors?

2007-09-07 Thread Liaw, Andy
locfit() in the locfit package can do that. Andy From: D. R. Evans > > I have a feeling that this may be a stupid question, but here > goes anyway: > is there a function that I can use to replace loess but which allows a > larger number of predictors? > > (I have a

[R] Q: loess-like function that allows more predictors?

2007-09-07 Thread D. R. Evans
the number of predictors be in the range from 1 to 4.) __ 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 and provide commented, minimal, self

Re: [R] plotting to stdout

2007-09-07 Thread Duncan Murdoch
On 9/7/2007 12:36 PM, Gene Selkov wrote: > I have found two prior instances of this question in R-help, but I can't > find the answer, and I'm giving up on mindless tinkering. > >http://tolstoy.newcastle.edu.au/R/help/03a/5994.html >https://stat.ethz.ch/piper

[R] plotting to stdout

2007-09-07 Thread Gene Selkov
I have found two prior instances of this question in R-help, but I can't find the answer, and I'm giving up on mindless tinkering. http://tolstoy.newcastle.edu.au/R/help/03a/5994.html https://stat.ethz.ch/pipermail/r-help/2004-December/062259.html I must be able to pipe th

Re: [R] text in boxplots

2007-09-07 Thread Yves Moisan
lot.formula function in the form of usrGlobal <- par("usr") then calling text(usrGlobal[2]-50,usrGlobal[4]-50,paste("Moyenne = ",r ...) did not show any text whereas it did in the reg function. But of course, pasting code could have been shorter for people to read ;-). Than

Re: [R] FW: variable format

2007-09-07 Thread Martin Becker
ic" [4] "East North Central" "West North Central" "South Atlantic" Kind regards, Martin Cory Nissen schrieb: > > > Anybody? > > > > > From: Cory Nissen > Sent: Tue 9/4/2007 9:30 AM > To: r-

[R] PCA IN R

2007-09-07 Thread Weiwei Shi
hi, A very quick search of PCA in R results in a lot of packages involving that function. Just wondering which one is generally used for "fat" data like microarray, esp. when the number of features is really big? Thanks for comments -- Weiwei Shi, Ph.D Research Scientist GeneGO, Inc.

Re: [R] Automatic detachment of dependent packages

2007-09-07 Thread Barry Rowlingson
ckage dies because DBI isn't there. The way to do it would be to detach any packages that are only depended on by the package you are detaching. You'd have to call packageDescription("foo", fields="Depends") for currently attached packages to build the dependency tree a

Re: [R] Delete query in sqldf?

2007-09-07 Thread Gabor Grothendieck
age: DBI Loading required package: gsubfn Loading required package: proto > # overwrite with devel version of the sqldf.R file > source("http://sqldf.googlecode.com/svn/trunk/R/sqldf.R";) > sqldf(c("delete from BOD where demand = 8.3", "select * from BOD"))

Re: [R] ploting missing data

2007-09-07 Thread Gabor Grothendieck
; Dipl.-Tech. Math. Markus Schmidberger > > Ludwig-Maximilians-Universität München > IBE - Institut für medizinische Informationsverarbeitung, > Biometrie und Epidemiologie > Marchioninistr. 15, D-81377 Muenchen > URL: http://ibe.web.med.uni-muenchen.de > Mail: Markus.Schmidberger [at]

Re: [R] Automatic detachment of dependent packages

2007-09-07 Thread Gabor Grothendieck
e:RSQLite" "package:DBI" "package:stats" > [7] "package:graphics" "package:grDevices" "package:utils" > [10] "package:datasets" "package:methods" "Autoloads" > [13] "package:base" > &

[R] Delete query in sqldf?

2007-09-07 Thread Paul Smith
Dear All, Is sqldf equipped with delete queries? I have tried delete queries but with no success. Thanks in advance, Paul __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] help on replacing values

2007-09-07 Thread darteta001
ound a similar thread dated July 2006 that used > > replace() on iris dataset, but I have tried reproducing it obtaining > > same warning message > > > > iris$Species <- replace(iris$Species, iris$Species > > == "setosa","NewName") > > Warning me

Re: [R] text in boxplots

2007-09-07 Thread Greg Snow
07, 2007 9:01 AM > To: Yves Moisan; r-help@stat.math.ethz.ch > Subject: Re: [R] text in boxplots > > The posting guide (a link at the bottom of every e-mail from > the list) suggests including a small example of what you are > trying to do. > Without an example, we have to gu

Re: [R] text in boxplots

2007-09-07 Thread Greg Snow
-Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Yves Moisan > Sent: Friday, September 07, 2007 5:05 AM > To: r-help@stat.math.ethz.ch > Subject: Re: [R] text in boxplots > > > Hi Greg, > > Actually, I'm using the scatter

Re: [R] ploting missing data

2007-09-07 Thread Peter Dalgaard
Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting gui

<    1   2   3   4   5   6   7   8   9   10   >