Re: [R] Problems in Recommending R

2009-02-06 Thread Wacek Kusnierczyk
Patrick Connolly wrote: > On Sun, 01-Feb-2009 at 11:34PM -0500, Stavros Macrakis wrote: > > |> A first step that would make the current Web page look much better > |> would be to anti-alias the demonstration graphic. The current graphic > |> makes R graphics seem (falsely!) to be very primitive. I

Re: [R] See source code for survplot function in Design package

2009-02-06 Thread Dieter Menne
Marc Schwartz comcast.net> writes: > getAnywhere("function.method") > Which also works without the "" getAnywhere(xtabs) getAnywhere("xtabs") Dieter __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] A way to "lock down" the order of bars for ggplot "dodged"histogram

2009-02-06 Thread ONKELINX, Thierry
Hmm, I had not tested my solution. But that used to work. But I'm getting the same result as you do. So maybe this is a bug in ggplot2. Is it, Hadley? Thierry ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek

[R] Variance of AR-Process.

2009-02-06 Thread Andreas Klein
Hello. How can I calculate the theoretical process variance of an AR-Process in R? Is there a specific function given in any R package? Regards, Andreas. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do r

Re: [R] Legend for radial.plot?

2009-02-06 Thread Jim Lemon
Jason Rupert wrote: Using plotrix, is it possible to create a legend for the following and attach it to the radial.plot? posmat<-matrix(sample(2:9,30,TRUE),nrow=3) radial.plot(posmat,labels=paste("X",1:10,sep=""),rp.type="p", main="Spiderweb plot",line.col=2:4,show.grid=FALSE,lwd=1:3, ra

[R] Linear model: contrasts

2009-02-06 Thread Stefan Kraemer
Hey, I am modelling a linear regression Y=X*B+E. To compute the effect of “group” the B-values of the regressors/columns that code the interaction effects (col. 5-8 and col. 11-14, see below) have to be weighted with non-zero elements within the contrast "Group 1" minus "Group 2" (see below). My

[R] R on Mobile Devices (Android)

2009-02-06 Thread Harsh
Hell R-list, At the cost of sounding far-fetched and almost incredulous, I would like to know if any R user is remotely considering the use of R on Mobile devices, and Android in particular. I really do not have an idea of the kind of definite incentives in terms of using R on Android, but having

[R] R training

2009-02-06 Thread wrzlprmpft
Hi there, does anybody know of a good R training course or has participated in one? Maybe also a good lecture or course at a university, where the teacher might be willing to offer a course? Audience: = 3 - 5 natural scientists with programming and rudimentary statistical knowledge Loc

[R] Rmpi with LAM/MPI on Debian

2009-02-06 Thread Ingeborg Schmidt
Hello, I seem to be unable to get Lam/Mpi to work with Rmpi on Debian 5. Following the readme file, I installed the packages r-cran-rmpi and lam3 lam3-dev lam-runtime . The lam-bhost.def is configured like this: hn01 cn01 cpu=4 cn02 cpu=4 Lam seems to be fine with this: >lamboot -v n-1<13746>

[R] annotating a filled contours plot with a grid of points

2009-02-06 Thread Dario Martin-Benito
Dear R-help members, I am trying to plot annotate a filled contours plot (with filled.contour) with a grid of points. I have read ways of annotating it with individual points but not with grids in another matrix. Any ideas? Thank you very much. Dario _

Re: [R] How to convert Charagter variables into numeric

2009-02-06 Thread Karina Knaus
You might want to try as.numeric(X), if you want to convert a factor then you could use as.numeric(as.character(X)), where X is a "variable". Karina On Thu, 5 Feb 2009 22:50:38, wrote: > I am importing a dataset in R where some of the variable are numerical and > some of them are character

Re: [R] annotating a filled contours plot with a grid of points

2009-02-06 Thread Michael Grant
Dario, Checkout the 'plot.axes' argument to 'filled.contour'. Michael Grant --- On Fri, 2/6/09, Dario Martin-Benito wrote: > From: Dario Martin-Benito > Subject: [R] annotating a filled contours plot with a grid of points > To: r-help@r-project.org > Date: Friday, February 6, 2009, 8:23 AM >

[R] plm package

2009-02-06 Thread Kirsten Svenja Wiebe
Hi there, additionally to the question below, how I can get data into the pdata.frame format, I have another question: Why doen't R recognize the function plm.data (), when calling it? I did load the plm library before... Greetz, Kirsten How do I actually manage to get data into the pdata.fr

Re: [R] How to convert Charagter variables into numeric

2009-02-06 Thread Wacek Kusnierczyk
if you use read.table for the import, reading about the colClasses parameter in ?read.table may help. vQ > On Thu, 5 Feb 2009 22:50:38, wrote: > > >> I am importing a dataset in R where some of the variable are numerical >> > and > >> some of them are character...but the problem is t

Re: [R] Target Plot?

2009-02-06 Thread Jason Rupert
Thank you again for your response.  Below is similar to what I ended up doing, i.e. example code:   library(plotrix) ions<-c(3.2, 5.0, 2.0) ion.names<-c("Na","Ca","Mg") radial.plot(ions, labels=ion.names, rp.type="s", start=90*(3.14159/180), main="Dissolved ions in water", point.sy

Re: [R] maptools: Test if point is in polygon

2009-02-06 Thread Roger Bivand
Renaud Lancelot gmail.com> writes: > > See function pip (point in polygon) in package splancs. > > Renaud > > 2009/2/5 Rainer M Krug gmail.com> > > > On Thu, Feb 5, 2009 at 3:21 PM, Aleksandr Andreev > > gmail.com> wrote: > > > In R's maptools package, is there a built-in function to test i

Re: [R] Does the "labpt" object in the Polygons-class represent the centroid of the polygon

2009-02-06 Thread Roger Bivand
epamail.epa.gov> writes: > > I need to calculate the centroids of some spatial polygons that I have > placed into a Polygons-class object. Is the labeling point in the > Polygons-class the centroid of the polygon? > Yes. The class documentation at ?"Polygons-class" does not state that this i

Re: [R] A way to "lock down" the order of bars for ggplot "dodged"histogram

2009-02-06 Thread hadley wickham
Yes, I think it is. I'll add it to my to do list. Hadley On Fri, Feb 6, 2009 at 3:30 AM, ONKELINX, Thierry wrote: > Hmm, I had not tested my solution. But that used to work. But I'm getting > the same result as you do. So maybe this is a bug in ggplot2. Is it, Hadley? > > Thierry > > ---

Re: [R] How to convert Charagter variables into numeric

2009-02-06 Thread Marc Schwartz
There is an issue that is being overlooked here. The read.table() family of functions use type.convert() by default internally to determine the resultant data types of the columns going into the data frame from the source text file. Everything read in by read.table() starts as character and then t

Re: [R] R command system under Windows

2009-02-06 Thread Coltrey Mather
?dir.create mkdir is a built-in for 'cmd.exe' (think of it like shell built-ins in unix, vs. an actual command in $PATH) system('cmd.exe /c mkdir foo') works, but the R command: dir.create is what you really want. On Thu, Feb 5, 2009 at 14:17, Aurelie Labbe, Dr. wrote: > Hi, > > I am trying to

[R] Finding a basis in a set of vectors

2009-02-06 Thread Zhou Fang
Hi, Okay, I have a n x p matrix X, which I know is not full rank. In particular, there may be linear dependencies amongst the columns (but not that many). What is a fast way of finding a linearly independent subset of the columns of X that will span the column space of X, in R? If it helps, I have

[R] Tinn-R 2.2.0.1 released with a new and complete User Guide

2009-02-06 Thread Jose Claudio Faria
Dears Tinn-R users, We want to announce that a new version of Tinn-R Gui/Editor (Windows OS) was released. It now has a complete User Guide, a old request of the users. The news of this version are below: 2.2.0.1 (Feb/05/2009) * Bugs fixed: 1. Latex font Enphase was fixed. It was in

Re: [R] Finding a basis in a set of vectors

2009-02-06 Thread Peter Dalgaard
Zhou Fang wrote: > Hi, > > Okay, I have a n x p matrix X, which I know is not full rank. In > particular, there may be linear dependencies amongst the columns (but > not that many). What is a fast way of finding a linearly independent > subset of the columns of X that will span the column space of

[R] glm package

2009-02-06 Thread Joseph Magagnoli
Hi all, can the glm package be used to estimate a logit model to panel data? I am asking this because stata has a standard logit model and then an xtlogit for longitudinal data. Is there something similar in R? Thank you jcm [[alternative HTML version deleted]] _

[R] Cluster analysis question

2009-02-06 Thread Dan Stanger
Hello All, I have data where each feature data point is a vector, and my distance measurement is a weighted dot product between vectors. I would like to use R to perform a cluster analysis on this data. Does one of the R cluster analysis routines provide for a user provided distance function?

[R] how to delete specific rows in a data frame where the first column matches any string from a list

2009-02-06 Thread Laura Rodriguez Murillo
Hi, I'm new in the mailing list but I would appreciate if you could help me with this: I have a big matrix from where I need to delete specific rows. The second entry on these rows to delete should match any string within a list (other file with just one column). Thank you so much! Laura ___

Re: [R] Finding a basis in a set of vectors

2009-02-06 Thread Zhou Fang
Ah ha, that does work. What do you mean it isn't robust, though? I mean, obviously linear dependency structures in general are not stable under small perturbations...? Or is it that it's platform dependent? Zhou On Fri, Feb 6, 2009 at 2:28 PM, Peter Dalgaard wrote: > Zhou Fang wrote: >> Hi, >>

[R] Problem about Mann-Kendall trend test

2009-02-06 Thread Wang Yi
Dear all R-users: In my case the series is the annual number of dry spell with their length exceeding a given threshold representing extreme events frequency. 1 0 2 2 1 1 2 1 2 1 1 1 2 3 4 0 2 3 1 2 3 1 2 1 2 0 1 2 2 2 3 4 2 0 2 1 2 2 2 6 1 2 4 1 3 1 2 1 3 4 I have been using Mann-Ken

[R] Fw: Problem about Mann-Kendall trend test

2009-02-06 Thread Wang Yi
-- Forwarded Message --- From: "Wang Yi" To: Sent: Fri, 6 Feb 2009 23:30:56 +0800 Subject: Problem about Mann-Kendall trend test Dear all R-users: In my case the series is the annual number of dry spell with their length exceeding a given threshold representing extreme eve

[R] Matrix Multiplication

2009-02-06 Thread Maithili Shiva
Hi R helpers, I have two matrices A and B of the order (4 * 5) and (5 * 3) respectively. How to multiply these two matrices to obtain resultant matrix of the order (4 * 3). Thanks in advance With regards Maithili __ R-help@r-project.org mailing

Re: [R] Non-linear optimisation

2009-02-06 Thread Eduard Pieterse (Macquarie Securities)
Hi Ravi, To give you some background: The function compute_strategy_before_fees returns portfolio returns and standard deviation. Our optimal portfolio will maximise the returns whilst keeping the standard deviation at a certain level. We have an input matrix C that the function uses to calculat

Re: [R] Non-linear optimisation

2009-02-06 Thread ehxpieterse
Hi Ravi, To give you some background: The function compute_strategy_before_fees returns portfolio returns and standard deviation. Our optimal portfolio will maximise the returns whilst keeping the standard deviation at a certain level. We have an input matrix C that the function uses to calcula

Re: [R] Cluster analysis question

2009-02-06 Thread Jim Porzak
Dan, Check out Fritz Leisch's flexclust package. HTH, Jim Porzak TGN.com San Francisco, CA http://www.linkedin.com/in/jimporzak use R! Group SF: http://ia.meetup.com/67/ On Fri, Feb 6, 2009 at 7:11 AM, Dan Stanger wrote: > Hello All, > > I have data where each feature data point is a vector, a

Re: [R] how to delete specific rows in a data frame where the firstcolumn matches any string from a list

2009-02-06 Thread Doran, Harold
Laura: When posting to this list, it is best to provide a small example. This will facilitate better help. Here is an example of what you want to do. > mat <- matrix(rnorm(10), ncol=2) > mat [,1] [,2] [1,] -0.1418628 -1.4559344 [2,] 0.4022863 1.4727494 [3,] 0.0158310 0.347131

[R] Upgrade R program (version 2.6.2) ???

2009-02-06 Thread Nidhi Kohli
Hi All, I downloaded the R program (version 2.6.2) in last Jan 2008. I now want to upgrade the program to its latest version, but I don't want to go through the process of deleting the existing version and downloading the new version. This is because my existing R program has numerous packages

Re: [R] Matrix Multiplication

2009-02-06 Thread Jorge Ivan Velez
Dear Maithili, A<-matrix(1:20,4,5)B<-matrix(10:24,5,3) A %*% B See ?"%*%" for more information. HTH, Jorge On Fri, Feb 6, 2009 at 7:57 AM, Maithili Shiva wrote: > Hi R helpers, > > > > I have two matrices A and B of the order (4 * 5) and (5 * 3) respectively. > How to multiply these two mat

[R] Upgrade R program (version 2.6.2) ???

2009-02-06 Thread Nidhi Kohli
Hi All, I downloaded the R program (version 2.6.2) in last Jan 2008. I now want to upgrade the program to its latest version, but I don't want to go through the process of deleting the existing version and downloading the new version. This is because my existing R program has numerous packages

[R] one-sample t-test with correlated (clustered) observations

2009-02-06 Thread Paul Artes
I would like to estimate the difference between two measurement techniques. With both techniques, 4 measurements were obtained in each of 15 individuals. (These are not *repeated* measurements though - each of the 4 is of a different attribute). The naive approach would be a paired t-test, but of

Re: [R] how to delete specific rows in a data frame where the first column matches any string from a list

2009-02-06 Thread Wacek Kusnierczyk
Laura Rodriguez Murillo wrote: > Hi, > > I'm new in the mailing list but I would appreciate if you could help > me with this: > I have a big matrix from where I need to delete specific rows. The > second entry on these rows to delete should match any string within a > list (other file with just one

Re: [R] Matrix Multiplication

2009-02-06 Thread Gavin Simpson
On Fri, 2009-02-06 at 04:57 -0800, Maithili Shiva wrote: > Hi R helpers, > > > > I have two matrices A and B of the order (4 * 5) and (5 * 3) > respectively. How to multiply these two matrices to obtain resultant > matrix of the order (4 * 3). ?`%*%` E.g.: > A <- matrix(runif(4*5), nrow = 4)

Re: [R] non linear regression with nls

2009-02-06 Thread lauramorg...@bluewin.ch
Thank you! It worked perfectly, also for the other variables! Messaggio originale Da: r...@life.ku.dk Data: 06.02.2009 13.29 A: Oggetto: Re: [R] non linear regression with nls Hi Laura, I think you have to make a list formulas: formList <- list(NT.N ~ fz1(Portata, a, b), NT.N ~ fz2(Po

Re: [R] Target Plot?

2009-02-06 Thread Dieter Menne
Jason Rupert yahoo.com> writes:   > Also, do you know how to make the radial rings "black" and a little thicker?  A co-worker requested that the be made a little darker and easier to see. >   library(plotrix) ions<-c(3.2, 5.0, 2.0) ion.names<-c("Na","Ca","Mg") radial.plot(ions, labels=ion.n

Re: [R] R on Mobile Devices (Android)

2009-02-06 Thread Barry Rowlingson
2009/2/6 Harsh : > Hell R-list, > > At the cost of sounding far-fetched and almost incredulous, I would > like to know if any R user is remotely considering the use of R on > Mobile devices, and Android in particular. First, rewrite R in Java. Good luck with that! http://code.google.com/android/

Re: [R] MLE for right-censored data with covariates

2009-02-06 Thread Terry Therneau
--begin inclusion --- I am a student (and very to new to R) working on a senior design project that is attempting to determine the demand distributions for single copy newspaper draws at individual sales outlet locations. Our sales data is right-censored, because sell-outs constitute a majority o

[R] party package conditional variable importance

2009-02-06 Thread Meghann Mears
Hello, I'm trying to use the party package function varimp() to get conditional variable importance measures, as I'm aware that some of my variables are correlated. However I keep getting error messages (such as the example below). I get similar errors with three separate datasets that I'm using

Re: [R] glm package

2009-02-06 Thread ronggui
First of all, glm is a function rather than a package. You can use glmer from lme4 package to estimate a similar model. Best On Fri, Feb 6, 2009 at 10:42 PM, Joseph Magagnoli wrote: > Hi all, > can the glm package be used to estimate a logit model to panel data? I am > asking this > because sta

Re: [R] maptools: Test if point is in polygon

2009-02-06 Thread Monica Pisica
Hi, You may want to check the package sp. There is one function called "point.in.polygo" that might do what you want. Good luck, Monica - >Message: 32 >Date: Thu, 5 Feb 2009 14:51:36 + >From: baptiste auguie >Subject: Re: [R] maptools: Test if point is in polygo

Re: [R] Upgrade R program (version 2.6.2) ???

2009-02-06 Thread Stefan Grosse
On Fri, 6 Feb 2009 10:41:54 -0500 (EST) Nidhi Kohli wrote: NK> has numerous packages that I downloaded for my research work. I NK> want to upgrade my R program with those packages in it. Is there a NK> way I can do this? I would appreciate if someone can help me in NK> this issue. A bit more in

Re: [R] Upgrade R program (version 2.6.2) ???

2009-02-06 Thread Prof Brian Ripley
Please don't post twice to different versions of the same address. r-help@r-project.org r-h...@stat.math.ethz.ch are the *same* list. A few posters always send to both. Despite reading this twice, we don't have the information we asked for in the posting guide. If this is Windows or Mac OS X

Re: [R] How to convert Charagter variables into numeric

2009-02-06 Thread John Fox
Dear Arup, It's very difficult to know what's going on without more information. What is the form of the data that you're importing and how are you reading the data? I ask because the most common way of getting data into R is probably via read.table(), which by default converts character data to f

Re: [R] how to delete specific rows in a data frame where the first column matches any string from a list

2009-02-06 Thread Laura Rodriguez Murillo
Thank you. I think grep would do it, but the list of expressions I need to match is too long so they are stored in a file. So the question would be how I can tell R to look into that file to look for the expressions that I want to match. Thank you again for your help Laura 2009/2/6 Wacek Kusnier

[R] R Package to Dir structure and Folder Analysis?

2009-02-06 Thread Jason Rupert
I'm using R on Windows and wondering if there is an R package that allows you to do folder structure analysis.   Specifically, I would like to grab the name, file size, type, and creation data of files within a folder and then to means and sigmas on the file size and creationdation date.   Tha

Re: [R] R command system under Windows

2009-02-06 Thread Henrique Dallazuanna
You could use shell indeed On Thu, Feb 5, 2009 at 6:17 PM, Aurelie Labbe, Dr. wrote: > Hi, > > I am trying to use the R command "system" under windows (XP). If I try the > simple command system("mkdir toto") to create a directory toto, it tells me > that it cannot find the command mkdir... > Doe

Re: [R] Upgrade R program (version 2.6.2) ???

2009-02-06 Thread Murray Cooper
Nidhi, You neglect to say what your OS is. If you are using Windows, see the "R for Windows FAQ" faq 2.8. I haven't looked, but I'm sure there is a similar item for other OS. Murray M Cooper, Ph.D. Richland Statistics 9800 N 24th St Richland, MI, USA 49083 Mail: richs...@earthlink.net -

[R] beanplot, Error in shapiro.test(x)

2009-02-06 Thread Markus Loecher
Dear all, I am trying to create beanplots from a dataset for which boxplot works fine. (MACOS, R 2.8.1 GUI 1.27 Tiger build 32-bit (5301)) I am getting the following error message: Error in shapiro.test(x) : sample size must be between 3 and 5000 I am not even sure why the shapiro.test is being u

[R] strange behavior of print vs. round

2009-02-06 Thread William Revelle
Dear friends, I have discovered what I find peculiar behavior of print. In general, print with n digits agrees with round with n digits. Although printing all the elements of a vector with digits=2 gives the expected results, printing a single element of the vector does not. x <- seq(.

[R] does R plus 3.3 need vista ?

2009-02-06 Thread glenn
Hi all - has anyone ot and experienced problems with R+. Have downloaded the trail and it will not work -does it need vista (like it says on the box!) Thanks glenn [[alternative HTML version deleted]] __ R-help@r-project.org mailin

Re: [R] one-sample t-test with correlated (clustered) observations

2009-02-06 Thread Ian Fiske
To handle the correlations, you can treat individuals as random blocks. So you have a mixed model with measurement technique crossed with measured attribute and random intercepts for each individual. You can fit this with lmer() in the lme4 package. Keep in mind there are a number of variations

Re: [R] R Package to Dir structure and Folder Analysis?

2009-02-06 Thread Charles C. Berry
On Fri, 6 Feb 2009, Jason Rupert wrote: I'm using R on Windows and wondering if there is an R package that allows you to do folder structure analysis. ?Specifically, I would like to grab the name, file size, type,?and creation data of files within a folder and then to means and sigmas on the

[R] RZope (UNCLASSIFIED)

2009-02-06 Thread Neiderer, Andrew (Civ, ARL/CISD)
Classification: UNCLASSIFIED Caveats: NONE Thank you for all the pointers to "R as a Web Service". I am still reading/learning, and have come across the link http://www.analytics.washington.edu/statcomp/projects/rzope/ for Rzope, but can not get a response. Is this Project/URL no longer ac

Re: [R] does R plus 3.3 need vista ?

2009-02-06 Thread Marc Schwartz
on 02/06/2009 11:01 AM glenn wrote: > Hi all - has anyone ot and experienced problems with R+. > > > > Have downloaded the trail and it will not work -does it need vista (like it > says on the box!) > > > > Thanks > > > > glenn R-Plus is a commercial version of R. You would be best se

Re: [R] RZope (UNCLASSIFIED)

2009-02-06 Thread Marc Schwartz
on 02/06/2009 10:49 AM Neiderer, Andrew (Civ, ARL/CISD) wrote: > Classification: UNCLASSIFIED > Caveats: NONE > > Thank you for all the pointers to "R as a Web Service". I am still > reading/learning, and have come across the link > http://www.analytics.washington.edu/statcomp/projects/rzope/

Re: [R] Linear model: contrasts

2009-02-06 Thread Ian Fiske
The problem comes from mixing up general linear model (LM) theory to compute B with the classical anova estimators. The two methods use different approaches to solving the normal equations. LM theory uses any generalized inverse of X'X to solve the normal equations. Yours comes from ginv() whic

Re: [R] does R plus 3.3 need vista ?

2009-02-06 Thread David M Smith
You might also be interested in trying REvolution R, which is our high-performance distribution of R. There's information about REvolution R here: http://www.revolution-computing.com/products/revolution-r.php and you can download it here: http://www.revolution-computing.com/downloads/revolution

[R] Using subset in validate() in Design, what is the correct syntax?

2009-02-06 Thread Eleni Rapsomaniki
Hi I am trying to understand how to get the validate() function in Design to work with the subset option. I tried this: ovarian.cph=cph(Surv(futime, fustat) ~ age+factor(ecog.ps)+strat(rx), time.inc=1000, x=T, y=T, data=ovarian) validate(ovarian.cph) #fine when no subset is used, but the

Re: [R] Using subset in validate() in Design, what is the correct syntax?

2009-02-06 Thread Frank E Harrell Jr
Eleni Rapsomaniki wrote: Hi I am trying to understand how to get the validate() function in Design to work with the subset option. I tried this: ovarian.cph=cph(Surv(futime, fustat) ~ age+factor(ecog.ps)+strat(rx), time.inc=1000, x=T, y=T, data=ovarian) validate(ovarian.cph) #fine when no

Re: [R] Rmpi with LAM/MPI on Debian

2009-02-06 Thread Dirk Eddelbuettel
On 6 February 2009 at 05:15, Ingeborg Schmidt wrote: | Hello, | I seem to be unable to get Lam/Mpi to work with Rmpi on Debian 5. The Debian Rmpi package (ie r-cran-rmpi) switched to Open MPI instead of LAM/MPI quite some time ago as LAM/MPI is no longer actively developed, and the LAM/MPI team i

Re: [R] annotating a filled contours plot with a grid of points

2009-02-06 Thread Marcelino de la Cruz
Try this example: mygrid <- expand.grid(x=seq(0,1, by=0.1), y=seq(0,1, by=0.1)) filled.contour(volcano, color = terrain.colors, asp = 1, plot.axes={ axis(1); axis(2); points(mygrid, cex=0.5, pch=19)}) Cheers, Marcelino > From: Dario Martin-Benito inia.es> > Subject: [R] an

Re: [R] Finding a basis in a set of vectors

2009-02-06 Thread Peter Dalgaard
Zhou Fang wrote: Ah ha, that does work. What do you mean it isn't robust, though? I mean, obviously linear dependency structures in general are not stable under small perturbations...? Or is it that it's platform dependent? The former. In particular there is an issue with columns that have al

[R] undesired grid in ps/eps outputs generated by filled.contour or image

2009-02-06 Thread Rachel Albrecht
Hi! Whenever I save a graphic in ps/eps format generated by filled.contour or image, an undesired grid is added to it (not visible on the X11 screen). For example: postscript("volcano.eps") filled.contour(volcano,col=gray(seq(0,1,,50)),levels=seq(min(volcano),max(volcano),,50)) dev.off() Any ide

[R] Rmpi Segmentation fault

2009-02-06 Thread Paul Benton
Dear all, I have used the Rmpi package many times before however this time the installation doesn't work :(. I've installed it as I always do with openMPI tar.gz file direct from the website. I'm installing on my ubuntu 8.10, R version 2.8.1. Linux 2.6.27-11-generic #1 SMP Thu Jan 29 19:28:32 UTC

[R] Suggestions on which package to use

2009-02-06 Thread Neotropical bat risk assessments
Hi all, I have been working with the chron package thanks to some guidance from Gabor Grothendieck so I could plot activity by times. What it the best or "recommended" package to compare such activity between sites? I want to compare the acetify time (multiple bat species) between sites and

[R] Rmpi Segmentation fault

2009-02-06 Thread hpbenton
Dear all, I have used the Rmpi package many times before however this time I've installed it as I always do with openMPI tar.gz file direct from the website. I'm installing on my ubuntu 8.10. Linux 2.6.27-11-generic #1 SMP Thu Jan 29 19:28:32 UTC 2009 x86_64 GNU/Linux All i get is: > library(Rmpi

[R] Introduction to maps (of Denmark)?

2009-02-06 Thread Peter Jepsen
Dear R-listers, I am using R for Windows Vista 64-bit. I have no experience working with maps, but now I have to plot a map of Denmark in which each Danish county is color-coded according to its incidence rate of a particular disease. My problem is that I don't know where to start. I have read the

[R] Joint test

2009-02-06 Thread Hein Goemans
Dear All, I am estimating a Cox proportional hazard model, with several interactions of the type a*z + a*y + a*x + b*z + b*y + b*x. I need to know if the first three (the "a"s) are jointly significantly different from the last three (the "b"s). I have tried several approaches, but have been

[R] format \Sexpr{}

2009-02-06 Thread Felipe Carrillo
Hi everyone: It is probably something simple but I can't find anything related to this. Could someone show me how to format the sum of x. the result is 1 but I need comma formatted like this: 10,000. Since I am going to be using this number to be added to another calculation, I want to be ab

[R] RExcel waiting for OLE action

2009-02-06 Thread joseph . g . boyer
When I run a macro that uses RExcel, I get a dialog box that says "Microsoft Excel is waiting for another application to complete an OLE action." There is no error in the RExcel commands in the macro, of that I am sure. The box appears to be related to the inclusion of RunRFile commands. The m

Re: [R] format \Sexpr{}

2009-02-06 Thread Marc Schwartz
on 02/06/2009 02:32 PM Felipe Carrillo wrote: > Hi everyone: It is probably something simple but I can't find > anything related to this. Could someone show me how to format the sum > of x. the result is 1 but I need comma formatted like this: > 10,000. Since I am going to be using this number

[R] Rmpi Segmentation fault

2009-02-06 Thread hpbenton
Dear all, I have used the Rmpi package many times before however this time I've installed it as I always do with openMPI tar.gz file direct from the website. I'm installing on my ubuntu 8.10, R version 2.8.1. Linux 2.6.27-11-generic #1 SMP Thu Jan 29 19:28:32 UTC 2009 x86_64 GNU/Linux All i get i

Re: [R] undesired grid in ps/eps outputs generated by filled.contour or image

2009-02-06 Thread Marc Schwartz
on 02/06/2009 01:32 PM Rachel Albrecht wrote: > Hi! > > Whenever I save a graphic in ps/eps format generated by filled.contour or > image, an undesired grid is added to it (not visible on the X11 screen). For > example: > > postscript("volcano.eps") > filled.contour(volcano,col=gray(seq(0,1,,50))

Re: [R] Rmpi Segmentation fault

2009-02-06 Thread Dirk Eddelbuettel
Paul, On 6 February 2009 at 19:37, Paul Benton wrote: | Dear all, | | I have used the Rmpi package many times before however this time the | installation doesn't work :(. I've | installed it as I always do with openMPI tar.gz file direct from the | website. I'm installing on my ubuntu 8.10, R ve

[R] Joint test

2009-02-06 Thread Hein Goemans
Dear All, I am estimating a Cox proportional hazard model, with several interactions of the type a*z + a*y + a*x + b*z + b*y + b*x. I need to know if the first three (the "a"s) are jointly significantly different from the last three (the "b"s). I have tried several approaches, but have been

Re: [R] how to delete specific rows in a data frame where the first column matches any string from a list

2009-02-06 Thread Wacek Kusnierczyk
Laura Rodriguez Murillo wrote: > Thank you. I think grep would do it, but the list of expressions I > need to match is too long so they are stored in a file. what does 'too long' mean? > So the > question would be how I can tell R to look into that file to look for > the expressions that I want

Re: [R] how to delete specific rows in a data frame where the first column matches any string from a list

2009-02-06 Thread Laura Rodriguez Murillo
yep, it definitely sounds like a work for perl, but I don't know perl (unfortunately). I'm still stuck with this so I'm giving more details in case it helps: I have file A with 382 columns and 30 rows. There are rows where only the entry in first column is duplicated in other rows. In these ca

Re: [R] format \Sexpr{}

2009-02-06 Thread Felipe Carrillo
marc: Thanks for the quick reply. I learned something new today, I wasn't aware of the big.mark argument. --- On Fri, 2/6/09, Marc Schwartz wrote: > From: Marc Schwartz > Subject: Re: [R] format \Sexpr{} > To: mazatlanmex...@yahoo.com > Cc: r-h...@stat.math.ethz.ch > Date: Friday, February 6

[R] Log transformation and -Inf values for use in glm()

2009-02-06 Thread Paul Warren Simonin
Hello, I am writing regarding log transformation of data in a single matrix column, and subsequent use of these data in a glm model fit. I have a data matrix in which I am using the log function to transform the values. This transformation results in -Inf values in some places, though. I

Re: [R] how to delete specific rows in a data frame where the first column matches any string from a list

2009-02-06 Thread Andrew Choens
I regularly deal with a similar pattern at work. People send me these big long .csv files and I have to run them through some pattern analysis to decide which rows I keep and which rows I kill off. As others have mentioned, Perl is a good candidate for this task. Another option would be a quick SQ

Re: [R] Joint test

2009-02-06 Thread John Fox
Dear Hein, I'm not entirely sure that I understand what you want to do, but I think that you want to test that the coefficient of milwinwar equals that of civwinwar, and similarly and simultaneously for two other pairs of coefficients. If so, you should be able to use the linear.hypothesis() funct

[R] xyplot multiple conditions and empty panels

2009-02-06 Thread Sebastien Bihorel
Dear R-users, Is it possible to prevent xyplot from drawing empty panels when using multiple conditions and when the dataset has a incomplete set of condition combinations - like in the following example? I have tried to modify the drop.unused.levels argument but without any success. Any help

Re: [R] how to delete specific rows in a data frame where the first column matches any string from a list

2009-02-06 Thread Sebastien Bihorel
Hi Laura, You might want to read the manual on Data importation and exportation on the cran webpage http://cran.r-project.org/ Otherwise, have a look at ?read.table. Sebastien __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinf

[R] Plot with x-axis dates

2009-02-06 Thread Paul Warren Simonin
Hello, I am attempting to create plots using two continuous variables and it seems I should be able to use the simple "plot" command. However, my x-axis values are dates, and I believe this could be the reason I am receiving error messages reading: Error in Summary.factor(c(2L, 4L, 3L, 5

[R] 16 digits and beyond? R64-bit a solution?

2009-02-06 Thread Aldi Kraja
Hi, I am working with some extremely small p-values and I want to capture the corresponding quantiles. I see the help file it says: 'qnorm' is based on Wichura's algorithm AS 241 which provides precise results up to about 16 digits. What happen after the 16th digits? If I am running

Re: [R] xyplot multiple conditions and empty panels

2009-02-06 Thread Deepayan Sarkar
On Fri, Feb 6, 2009 at 1:15 PM, Sebastien Bihorel wrote: > Dear R-users, > > Is it possible to prevent xyplot from drawing empty panels when using > multiple conditions and when the dataset has a incomplete set of condition > combinations - like in the following example? > I have tried to modify t

Re: [R] Introduction to maps (of Denmark)?

2009-02-06 Thread Greg Snow
Googling for Denmark Shapefile leads to this website: http://www.vdstech.com/map_data.htm Where a few clicks lead to downloading a set of shapefiles (different levels of subdividing the country, hopefully you know more about what they correspond to than I do, about all I know about Denmark is fr

Re: [R] Joint test

2009-02-06 Thread Hein Goemans
Dear John, Thank you very much. Yes, I think this should do it. The basic hypothesis is to test whether the outcome of war (win, lose, draw) has a different effect on different regime types. In other words, are leaders of some regime types more "sensitive" to the outcome of war than others.

[R] How to sort a matrix or dataframe by two columns?

2009-02-06 Thread Bill Hyman
Dear all, I have a matrix data and would like to sort it by col 1 first and then sort it by col 2. Can I do it in R? Thanks a lot! Bill __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] how to delete specific rows in a data frame where the first column matches any string from a list

2009-02-06 Thread Laura Rodriguez Murillo
Thank you so much! I finally got it. Laura 2009/2/6 Sebastien Bihorel : > Hi Laura, > > You might want to read the manual on Data importation and exportation on the > cran webpage http://cran.r-project.org/ > Otherwise, have a look at ?read.table. > > Sebastien >

Re: [R] undesired grid in ps/eps outputs generated by filled.contour or image

2009-02-06 Thread Marc Schwartz
> On Fri, 6 Feb 2009, Marc Schwartz wrote: > >> on 02/06/2009 01:32 PM Rachel Albrecht wrote: >>> Hi! >>> >>> Whenever I save a graphic in ps/eps format generated by >>> filled.contour or image, an undesired grid is added to it (not >>> visible on the X11 screen). For example: >>> >>> postscript("

Re: [R] How to sort a matrix or dataframe by two columns?

2009-02-06 Thread Gábor Csárdi
Yes, you can: m <- matrix( sample(1:5, 20, rep=TRUE), nc=2) m[ order(m[,1],m[,2]), ] Gabor On Fri, Feb 6, 2009 at 11:29 PM, Bill Hyman wrote: > Dear all, > > I have a matrix data and would like to sort it by col 1 first and then sort > it by col 2. Can I do it in R? Thanks a lot! > > Bill > >

Re: [R] Introduction to maps (of Denmark)?

2009-02-06 Thread Kingsford Jones
Also, see this page for more ideas on mapping an auxiliary variable by county: http://r-spatial.sourceforge.net/gallery/ (e.g. plots 9, 14, 15 and 21) Kingsford Jones On Fri, Feb 6, 2009 at 3:22 PM, Greg Snow wrote: > Googling for Denmark Shapefile leads to this website: > http://www.vdstech

  1   2   >