[R] R on Mobile Devices (All)

2009-02-06 Thread Ajay ohri
Hi, I have been considering use of R on Windows Operating system and the market leader Symbiosis. I want to log on to my remote pc using remote desktop securely using the username and password, then run R as if I was in front of the PC itself ( PC got more RAM than Mobile ..still). Ditto for the A

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

2009-02-06 Thread cruz
On Fri, Feb 6, 2009 at 8:12 PM, Harsh wrote: > 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. > Check out FreeRunner from Openmoko (http://wiki.o

Re: [R] fixed effects regression

2009-02-06 Thread Bill.Venables
I think your problem is that you are using SAS-style contrasts rather than treatment contrasts. That is, your 'dummy' matrix omits a final column, whereas you should be omitting the first column. Here is a version of your function which I find easier to follow. You might like to work through

[R] Output results to a single postscript document

2009-02-06 Thread Pele
Hello R users, I have been trying to output all my results (text, plots, etc) into the same postscript file as one document, but have been unable to...Can anyone help me improve my code below so that I can accomplish this? Currently I have to output them separately then piece them back toget

[R] Printing all output (text ans plots) to the same postscript document

2009-02-06 Thread Pele
Hello R users, I have been trying to output all my results (text, plots, etc) into the same postscript file as one document, but have been unable to...Can anyone help me improve my simplified version of the code below so that I can accomplish this? Currently I have to output them separately th

[R] fixed effects regression

2009-02-06 Thread parkbomee
Hi everyone, I am running this fixed effects model in R. The thing is, my own code and the canned routine keep returning different estimates for the fixed effects factors and intercept. (The other variables' estimates and R^2 are the same!!! weird!!) I attach my own code, just in case. I am pre

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
Andrew Choens wrote: > 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. > An

[R] Problems with svyhist

2009-02-06 Thread Farley, Robert
I have two problems with svyhist. I hope this is easy, and it may be that "simple R syntax" will do what I need. 1) I'm able to get a single plot out, but I need to put two distributions in the same graphic to visually compare them. 2) I get uniform breaks at intervals of 10. I can p

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

2009-02-06 Thread Charles C. Berry
On Fri, 6 Feb 2009, Aldi Kraja wrote: 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

Re: [R] Tables in legend

2009-02-06 Thread jim holtman
This will probably do what you need: plot(1) x <- 1:10 # numbers for the legend blah <- LETTERS[1:5] legendData <- character(5) for (i in 1:5) legendData[i] <- sprintf("Blah-%s %d %d", blah[i], x[2*i - 1], x[2*i]) legend('topright', legend=legendData) On Fri, Feb 6, 2009 at 6:57 PM, Vemuri,

[R] Tables in legend

2009-02-06 Thread Vemuri, Aparna
I need to create a legend for a simple scatter plot in the following format. This is Blah1 number1 number2 This is Blah2 number3 number4 . . . This is Blah6 number11number12 I looked up these help pages and found the following solution. lStr<-c(Blah1, Blah2,Blah6, number 1,

[R] Operations on difftime (abs, /, c)

2009-02-06 Thread Stavros Macrakis
Since both comparison and negation are well-defined for time differences, I wonder why abs and division are not defined for class difftime. This behavior is clearly documented on the man page: "limited arithmetic is available on 'difftime' objects"; but why? Both are natural, semantically sound, an

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

2009-02-06 Thread Bill Hyman
Gabor, Thank you very much! Bill - Original Message From: Gábor Csárdi To: Bill Hyman Cc: r-help@r-project.org Sent: Friday, February 6, 2009 2:37:30 PM Subject: Re: [R] How to sort a matrix or dataframe by two columns? Yes, you can: m <- matrix( sample(1:5, 20, rep=TRUE), nc=2) m

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

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] 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 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 >

[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] 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.

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] 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

[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

[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

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] 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] 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

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

[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] 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

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] 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

[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] 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

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))

[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] 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] 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

[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] 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] 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] 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] 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 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] 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

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

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] 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] 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

[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] 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

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] 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] 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

[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] 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

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

[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

[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] 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

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 -

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

[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] 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

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] 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] 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] 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

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] 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

[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

[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

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] 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] 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

[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

[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

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] 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

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] 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 ___

[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] 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]] _

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] 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] 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] 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

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] 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] 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

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] 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] 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] 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] 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] 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

[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] 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 >

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

  1   2   >