Re: [R] Rearranging data

2010-02-18 Thread Barry Rowlingson
On Thu, Feb 18, 2010 at 9:21 AM, Anna Carter anna_carte...@yahoo.com wrote: My objective is to rearrange filtered1 as date corp1   corp2   corp11    corp17 17-Feb   65    95 30  16 16-Feb   70   135 15-Feb   69   140 14-Feb   89 13-Feb   

Re: [R] Rearranging data

2010-02-18 Thread Barry Rowlingson
On Thu, Feb 18, 2010 at 12:14 PM, Barry Rowlingson b.rowling...@lancaster.ac.uk wrote:  Ooh, so close! If you'd said 'reshaped' you'd be half way there: .. because that is all in the reshape package. So do library(reshape) first. Oops -- blog: http://geospaced.blogspot.com/ web: http

Re: [R] Use of R in clinical trials

2010-02-18 Thread Barry Rowlingson
On Thu, Feb 18, 2010 at 12:12 PM, John Sorkin jsor...@grecc.umaryland.edu wrote: It is easy to devolve into visceral response mode, lose objectivity and slip into intolerance. R, S, S-Plus, SAS, PASW (nee SPSS), STATA, are all tools. Each has strengths and weaknesses. No one is inherently

Re: [R] reading quattro pro spreadsheet .qpw into R

2010-02-16 Thread Barry Rowlingson
On Tue, Feb 16, 2010 at 4:12 PM, stephen sefick ssef...@gmail.com wrote: I have many quattro pro spreadsheets and no quattro pro.  Is there a way to access the data using R, or any other solution that anyone can think of? OpenOffice claims it can read Quattro Pro 6.0 'wb2' files, but maybe

Re: [R] executable R script under xp (to avoid migration toward Matlab or C++)

2010-02-15 Thread Barry Rowlingson
On Mon, Feb 15, 2010 at 10:37 AM, PtitBleu ptit_b...@yahoo.fr wrote: Hello, I discovered R two years ago and thanks to the R-community I managed to write some scripts to analyze my data stored in mysql databases. The only problem is that I am the only one using R in the lab. Colleagues

Re: [R] executable R script under xp (to avoid migration toward Matlab or C++)

2010-02-15 Thread Barry Rowlingson
On Mon, Feb 15, 2010 at 12:03 PM, PtitBleu ptit_b...@yahoo.fr wrote: Thanks to all for your advices. littler is not for xp, isn'it ? Maybe, maybe not, but Rscript definitely is: http://blog.revolution-computing.com/2009/01/using-r-as-a-scripting-language-with-rscript.html You didn't

Re: [R] Which method is called in command like class(x)='something'?

2010-02-15 Thread Barry Rowlingson
On Mon, Feb 15, 2010 at 5:07 PM, blue sky bluesky...@gmail.com wrote: x=3 `class-`(x,'something')#this command prints [1] 3 attr(,class) [1] something x=3 class(x)='something'#this command doesn't print anything The first of the above two commands print the content of 'x' but the second

Re: [R] Creating a new Access database with R

2010-02-11 Thread Barry Rowlingson
On Thu, Feb 11, 2010 at 6:23 PM, Dieter Menne dieter.me...@menne-biomed.de wrote: Paul- wrote: As a workaround, you can keep an empty mdb file on your filesystem. When you need a new database, you can copy and rename the empty file. Creating a new database is not part of (R)ODBC because

Re: [R] difftime result for days not an integer?

2010-02-11 Thread Barry Rowlingson
On Thu, Feb 11, 2010 at 8:40 PM, Jonathan jonsle...@gmail.com wrote: Anybody have an idea why I would get a non-integer value for the number of days here? difftime('2004-08-05','2001-01-03',units='days') Time difference of 1309.958 days Would you just round off? It's one hour short of an

Re: [R] Using R to format a file using a server (PDB to PQR file)

2010-02-10 Thread Barry Rowlingson
On Wed, Feb 10, 2010 at 6:16 AM, Amitoj S. Chopra amit...@gmail.com wrote: I am trying to write a program that uses R and takes a pdb file, and converts it to a pqr file. This task is simple generally, using the website, http://pdb2pqr-1.wustl.edu/pdb2pqr/. How do you use R to input a pdb file

Re: [R] transparent concentric circles

2010-02-09 Thread Barry Rowlingson
On Tue, Feb 9, 2010 at 2:20 PM, Karin Lagesen kar...@cbs.dtu.dk wrote: I have a data set which I would like to plot as a set of concentric circles. The data represent a count of the number of characteristics shared by various elements - an example would look like this: 1 100 2 75 3 50 4 25

Re: [R] The KJV

2010-02-07 Thread Barry Rowlingson
On Sun, Feb 7, 2010 at 8:28 AM, Ted Harding ted.hard...@manchester.ac.uk wrote: Delightful! And fascinating in the detail too.  length(tt)  # [1] 5078 with slight changes like:  barplot(rev(tt[1:50]),horiz=TRUE,las=1,cex.names=0.6,log=x)  # ...  

Re: [R] convert R plots into annotated web-graphics

2010-02-07 Thread Barry Rowlingson
On Sun, Feb 7, 2010 at 2:35 PM, Rainer Tischler rainer_...@yahoo.de wrote: Dear all, I would like to make a large scatter plot created with R available as an interactive web graphic, in combination with additional text-annotations for each data point in the plot. The idea is to present the

Re: [R] convert R plots into annotated web-graphics

2010-02-07 Thread Barry Rowlingson
On Sun, Feb 7, 2010 at 2:35 PM, Rainer Tischler rainer_...@yahoo.de wrote: If you have alternative ideas for interlinking tabular annotations with plotted data points, I would appreciate any recommendation/suggestion. (I work with R 2.8.1 on different 32-bit PCs with both Linux and Windows

Re: [R] reading csv files

2010-02-05 Thread Barry Rowlingson
On Fri, Feb 5, 2010 at 10:23 AM, analys...@hotmail.com analys...@hotmail.com wrote: the csv files are downloaded from a database and it looks like some character fields contain the CR-LF sequence within them. This causes R to see a new record/row and the number of rows it sees is different

Re: [R] how to plot single frames as a movie?

2010-02-04 Thread Barry Rowlingson
On Thu, Feb 4, 2010 at 10:58 AM, Eik Vettorazzi e.vettora...@uke.uni-hamburg.de wrote: Hi Javier, have a look at the animation-package on CRAN  and http://animation.yihui.name/ I've had some fun making web-based animations using the mootools javascript library. Instructions here:

Re: [R] how to read this data file into R?

2010-02-03 Thread Barry Rowlingson
On Tue, Feb 2, 2010 at 11:40 PM, David Winsemius dwinsem...@comcast.net wrote: The real solution is to grab the miscreant sender by the throat , er,  tactfully discuss with your valued customer ,,, and shake out a machine readable form that has all of one row in a row. Indeed. But you might

Re: [R] R performance

2010-01-31 Thread Barry Rowlingson
On Sun, Jan 31, 2010 at 7:55 PM, Marc Jekel feuerw...@gmx.de wrote: Dear R Fans, I was recently asking myself how quick R is in code execution. R can be a million times quicker than C code. Badly written C code. Next question... I have been running simulations lately that need quite a time

Re: [R] Randomly rearranging elements of sets

2010-01-27 Thread Barry Rowlingson
On Wed, Jan 27, 2010 at 11:11 PM, Rolf Turner r.tur...@auckland.ac.nz wrote: ?sample And/Or read Knuth. Does this sound like a homework problem? -- blog: http://geospaced.blogspot.com/ web: http://www.maths.lancs.ac.uk/~rowlings web: http://www.rowlingson.com/ twitter:

Re: [R] R-forge getting the wrong package

2010-01-26 Thread Barry Rowlingson
On Sun, Jan 24, 2010 at 10:09 AM, Barry Rowlingson b.rowling...@lancaster.ac.uk wrote: After accusing someone of typing 'install.packages(weather)' instead of 'install.packages(webmaps)', I discovered that R-forge really is currently returning the wrong source tarball for packages after

[R] R-forge getting the wrong package

2010-01-24 Thread Barry Rowlingson
After accusing someone of typing 'install.packages(weather)' instead of 'install.packages(webmaps)', I discovered that R-forge really is currently returning the wrong source tarball for packages after 'Repitools' in the alphabet. The data returned from available.package in install.packages goes

Re: [R] Read files in a folder when new data files come

2010-01-24 Thread Barry Rowlingson
On Sun, Jan 24, 2010 at 8:05 PM, jlfmssm jlfm...@gmail.com wrote: Hello, I am working on a project. The new data files is coming as the data collectors get data, then the data collectors put these new data files in a folder. I need to read these new data files when they are in folder. so

Re: [R] Error in plot.new()

2010-01-24 Thread Barry Rowlingson
On Sun, Jan 24, 2010 at 9:15 PM, jean luc picard peter.wohlm...@gmx.at wrote: Dear all, I have received the following error message since R 2.10.1 for the first time and I am not able to draw graphics any more: plot(1:5,1:5) plot(1:5,1:5) Error in plot.new() : figure margins too large In

Re: [R] Error in plot.new()

2010-01-24 Thread Barry Rowlingson
On Sun, Jan 24, 2010 at 9:40 PM, jean luc picard peter.wohlm...@gmx.at wrote: Running R --vanilla plot(1:5,1:5) plot(1:5,1:5) plot(1:5,1:5) plot(1:5,1:5) plot(1:5,1:5) plot(1:5,1:5) plot(1:5,1:5) plot(1:5,1:5) Error in plot.new() : figure margins too large In addition: Warning

Re: [R] use R from python

2010-01-21 Thread Barry Rowlingson
On Thu, Jan 21, 2010 at 8:35 PM, Massimo Di Stefano massimodisa...@yahoo.it wrote: Hi All, please aplogize me if my qustion is a bit OT here, but maybe is there someone that uses R from inside python using rpy or rpy2 interface. In [54]: x = rdiv( ( rdiff( x, rmin(x) ) ) , ( rdiff( rmax(x)

Re: [R] Predict polynomial problem

2010-01-19 Thread Barry Rowlingson
On Tue, Jan 19, 2010 at 1:36 AM, Charles C. Berry cbe...@tajo.ucsd.edu wrote: Its the environment thing. I think you want something like this:        models[[i]]=lm( bquote( y ~ poly(x,.(i)) ), data=d) Use        terms( mmn[[3]] ) both with and without this change and        ls( env

Re: [R] Predict polynomial problem

2010-01-19 Thread Barry Rowlingson
On Tue, Jan 19, 2010 at 5:37 PM, Charles C. Berry cbe...@tajo.ucsd.eduwrote: Note: i - 20 bquote(y ~ poly(x,.(i))) y ~ poly(x, 20) I see it now. bquote(y~poly(x,.(i))) gets it's 'i' there and then, sticks it in the returned expression as the value '20', so any further evaluations get

Re: [R] Number of download.

2010-01-19 Thread Barry Rowlingson
On Tue, Jan 19, 2010 at 8:23 PM, David Winsemius dwinsem...@comcast.net wrote: On Jan 19, 2010, at 2:51 PM, Christophe Genolini wrote: Hi the list Is there a way to know how many times an R package (on CRAN) has been download ? No, or at least not a comprehensive number. The question came

Re: [R] Number of download.

2010-01-19 Thread Barry Rowlingson
On Tue, Jan 19, 2010 at 9:51 PM, Liviu Andronic landronim...@gmail.com wrote: Why would this be evil? For R, for example? I've already read some objections to this on r-help, but I'm not sure I understand the reasons. As long as the 'ping' happens once, at first start, anonymously, and

[R] Predict polynomial problem

2010-01-18 Thread Barry Rowlingson
I have a function that fits polynomial models for the orders in n: lmn - function(d,n){ models=list() for(i in n){ models[[i]]=lm(y~poly(x,i),data=d) } return(models) } My data is: d=data.frame(x=1:10,y=runif(10)) So first just do it for a cubic: mmn = lmn(d,3)

Re: [R] advice/opinion on - vs = in teaching R

2010-01-15 Thread Barry Rowlingson
On Fri, Jan 15, 2010 at 3:45 AM, Erin Hodgess erinm.hodg...@gmail.comwrote: Hi R People: I'm teaching a statistical computing class using R starting next week (yay!) and I have an opinion type question, please. I'm old school and use - in an assignment. You call that 'old school'?? I

Re: [R] advice/opinion on - vs = in teaching R

2010-01-15 Thread Barry Rowlingson
On Fri, Jan 15, 2010 at 6:57 AM, Ted Harding ted.hard...@manchester.ac.ukwrote: There is at least one context where the distinction must be preserved. Example: pnorm(1.5) # [1] 0.9331928 pnorm(x=1.5) # Error in pnorm(x = 1.5) : unused argument(s) (x = 1.5) pnorm(x-1.5) # [1]

Re: [R] Updated comparison table for SAS-SPSS Add-ons and R Functions

2010-01-14 Thread Barry Rowlingson
On Thu, Jan 14, 2010 at 12:39 AM, Muenchen, Robert A (Bob) muenc...@utk.edu wrote: One of the things I updated was to *remove* the now-obsolete PASW! Since IBM bought the company, they did away with that and renamed things IBM SPSS See the list at:

Re: [R] Updated comparison table for SAS-SPSS Add-ons and R Functions

2010-01-13 Thread Barry Rowlingson
On Wed, Jan 13, 2010 at 11:53 PM, Muenchen, Robert A (Bob) muenc...@utk.edu wrote: Hi All, I have substantially expanded the table that compares SAS and SPSS add-on modules to somewhat equivalent R packages. This new version is at: http://r4stats.com/add-on-modules and I would very much

Re: [R] data frame names in sequence. please help!!!

2010-01-10 Thread Barry Rowlingson
On Sun, Jan 10, 2010 at 7:16 AM, Berend Hasselman b...@xs4all.nl wrote: Zoho wrote: I've been stuck with this problem for a whole afternoon. It's silly but totally pissed me off. I have a set of data frames with names in a sequence: df_1, df_2, df_3, ..., df_20. Now I want to access each

Re: [R] adding 3D arrows to 3D plots

2010-01-10 Thread Barry Rowlingson
Have a go with this: arrow3d - function(p0=c(0,1,0),p1=c(1,1,1),s=0.1,theta=pi/4,n=3,...){ ##p0: start point ##p1: end point ## s: length of barb as fraction of line length ## theta: opening angle of barbs ## n: number of barbs ## ...: args passed to lines3d for line

Re: [R] parsing pdf files

2010-01-09 Thread Barry Rowlingson
On Sat, Jan 9, 2010 at 1:11 PM, David Kane d...@kanecap.com wrote: I have a pdf file that I would like to parse into R: http://www.williams.edu/Registrar/geninfo/faculty.pdf For now, I open the file in Acrobat by hand, then save it as text and then use readLines(). That works fine but a) I

Re: [R] Working with source file

2010-01-06 Thread Barry Rowlingson
On Wed, Jan 6, 2010 at 8:34 PM, D Kelly O'Day ko...@processtrends.comwrote: I am trying to build an easy to use climate data analysis tool kit that will let non-R users run my detailed r script with minimum R learning curve effort. Here's an example: link -

Re: [R] Emacs vs Eclipse vs Rcmdr

2010-01-04 Thread Barry Rowlingson
On Sun, Jan 3, 2010 at 10:59 PM, Charlotte Maia mai...@gmail.com wrote: I'm not so much interested in which is the best user interface for R. Rather which is the best ***platform*** for developing ***new*** user interfaces for R. Noting I'm using the term user interface is a very general

Re: [R] F77_CALL, F77_NAME definition

2010-01-03 Thread Barry Rowlingson
On Sun, Jan 3, 2010 at 2:11 PM, rkevinbur...@charter.net wrote: I give up. Maybe it is my search (Windows) but I cannot seem to find the definition of the F77_CALL or F77_NAME macros. Either there are too many matches or the search just doesn't find it. For example where is the source for:

Re: [R] F77_CALL, F77_NAME definition

2010-01-03 Thread Barry Rowlingson
On Sun, Jan 3, 2010 at 3:20 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: I think it's better to use a reasonable text editor here; I used Textpad.  I don't think there's anything too special about it, but it does have Search | Find in files, and I can list the file pattern (obviously *.h for

Re: [R] Remove double quotation marks

2009-12-29 Thread Barry Rowlingson
On Tue, Dec 29, 2009 at 6:31 PM, Lisa lisa...@gmail.com wrote: Thank you for your reply. But in the following case, “cat()” or “print()” doesn’t work. data.frame(cbind(variable 1, variable 2, cat(paste(variable, x), \n))), where x is a random number generated by other R script. Lisa Yes,

Re: [R] What might be the security issues from installing R?

2009-12-28 Thread Barry Rowlingson
On Mon, Dec 28, 2009 at 6:23 PM, Peterson, Eric B. ebpeter...@usbr.gov wrote: My guess is that we may run into problems due to R being open-source, leading to a potential perception that the code might be poorly controlled. This could be further complicated by the need for downloading

Re: [R] Object of type 'closure' not subsettable

2009-12-21 Thread Barry Rowlingson
On Mon, Dec 21, 2009 at 1:43 PM, Muhammad Rahiz muhammad.ra...@ouce.ox.ac.uk wrote: Thanks Barry for the clarification. With regards to the following; d2[[i]] - file[[i]] - mean renamed to d2[[i]] - f[[i]] - m The object f contains the following so clearly f is subsettable [[1]]  V1

Re: [R] Object of type 'closure' not subsettable

2009-12-20 Thread Barry Rowlingson
On Sun, Dec 20, 2009 at 7:40 PM, Muhammad Rahiz muhammad.ra...@ouce.ox.ac.uk wrote: Hi all, How can I overcome the error object of type 'closure' not subsettable I ran the following script seq - paste(seq(1914, 1916, by=1), *.y, sep=.) # make sequence c - 3 # total number of files d2 -

Re: [R] Exchange NAs for mean

2009-12-17 Thread Barry Rowlingson
2009/12/17 Joel Fürstenberg-Hägg joel_furstenberg_h...@hotmail.com: Hi all, I'm have a matrix (X) with observations as rows and parameters as columns. I'm trying to exchange all missing values in a column by the column mean using the code below, but so far, nothing happens with the

Re: [R] R question type in Moodle

2009-12-15 Thread Barry Rowlingson
On Tue, Dec 15, 2009 at 8:05 PM, David Kane d...@kanecap.com wrote: Moodle (www.moodle.org) is an open source course management system, a competitor to Blackboard. I am writing several hundred R questions that will be used within the quiz module in Moodle. Unfortunately, Moodle does not have a

Re: [R] SAS datalines or cards statement equivalent in R?

2009-12-07 Thread Barry Rowlingson
On Mon, Dec 7, 2009 at 3:53 PM, Marshall Feldman ma...@uri.edu wrote: Regarding the various methods people have suggested, what if a typical tab-delimited data line looks like:     SMS11001 1990 M01 688.0 and the SAS INPUT statement is   INPUT survey $ 1-2 seasonal $ 3 state $

Re: [R] SAS datalines or cards statement equivalent in R?

2009-12-07 Thread Barry Rowlingson
On Mon, Dec 7, 2009 at 5:37 PM, Marshall Feldman ma...@uri.edu wrote: I totally agree with Barry, although it's sometimes convenient to include data with analysis code for debugging and/or documentation purposes. However, the example actually applies equally to separate data files. In fact,

Re: [R] SAS datalines or cards statement equivalent in R?

2009-12-07 Thread Barry Rowlingson
On Mon, Dec 7, 2009 at 8:54 PM, Marshall Feldman ma...@uri.edu wrote: Barry Rowlingson wrote:  I'd love to duplicate this functionality of SAS, however, I fear: http://www.sas.com/news/preleases/SASsuit.html Amazing, since input statements in SAS bear an uncanny resemblance to how PL/I

Re: [R] Data Manipulation Question

2009-12-04 Thread Barry Rowlingson
On Thu, Dec 3, 2009 at 9:52 PM, John Filben johnfil...@yahoo.com wrote: Can R support data manipulation programming that is available in the SAS datastep?  Specifically, can R support the following: -  Read multiple dataset one record at a time and compare values from each; then base

Re: [R] Loop doesn't work

2009-12-01 Thread Barry Rowlingson
On Tue, Dec 1, 2009 at 2:01 PM, Trafim rdapam...@gmail.com wrote: Hi everybody, I have the following problem, the following code seems to run only once for i and j and for k from one to M. Doesn't R for increase the argument by itself? for (i in 1:N){  for (j in 1:(Tk-1)){  if((XGrid[i]

Re: [R] How to display an image on RGL plot?

2009-11-26 Thread Barry Rowlingson
On Thu, Nov 26, 2009 at 7:14 AM, Vladimir Eremeev wl2...@gmail.com wrote: The underlying picture is a JPEG image, loaded with the rimage package and coerced to the matrix. Spheres denote control points, collected from this picture and must be situated over the certain points of the image. I

Re: [R] Concave hull

2009-11-26 Thread Barry Rowlingson
On Thu, Nov 26, 2009 at 9:45 PM, Ted Harding ted.hard...@manchester.ac.uk wrote: So it is still an undefined solution. As is yours -- since you might want to use different radii of spheres from different directions. I think the formal and rigorous definition is a nice polygon that goes round

Re: [R] Mysterious R script behavior when called from webserver

2009-11-25 Thread Barry Rowlingson
On Wed, Nov 25, 2009 at 8:15 PM, Dylan Beaudette debeaude...@ucdavis.edu wrote: Hi, I am trying to transition a system based on dynamic image generation (via R) from our development system to a production environment. Our R script functions as expected when run by a regular user. However the

Re: [R] Concave hull

2009-11-25 Thread Barry Rowlingson
On Wed, Nov 25, 2009 at 11:39 PM, Remko Duursma remkoduur...@gmail.com wrote: See the function 'convhulln' in the 'geometry' package. It uses this algorithm : http://www.qhull.org/ That looks like a CONVEX hull, the original poster asked about CONCAVE hulls (and in all CAPS to emphasise

Re: [R] Natural colours for topographic data

2009-11-24 Thread Barry Rowlingson
On Tue, Nov 24, 2009 at 8:42 AM, Karl Ove Hufthammer k...@huftis.org wrote: On Mon, 23 Nov 2009 12:21:03 -0500 David Winsemius dwinsem...@comcast.net wrote: I would be happy with a simple one, that just mapped negative values to water colours and positive values to land colours. Searching

Re: [R] how do i persuade IT to install R on PCs ?? ...and should I ??

2009-11-23 Thread Barry Rowlingson
On Mon, Nov 23, 2009 at 1:01 PM, David Winsemius dwinsem...@comcast.net wrote: It was a good read. We had a recent example submitted to r-help where I had occasion to test their solution 2 (use OO.org' Calc) and found it to be just as bad at curve fitting for a polynomial as had been Excel.

Re: [R] Do you keep an archive of useful R code? and if so - how?

2009-11-22 Thread Barry Rowlingson
On Sun, Nov 22, 2009 at 5:45 PM, Tal Galili tal.gal...@gmail.com wrote: Hello Marc and Jeff, Thank you for replying. I am using winXP, and any recommendation for GUI based system will be welcomed. However, my initial question was not how to maintain code that I write and develop, but

Re: [R] python

2009-11-21 Thread Barry Rowlingson
On Sat, Nov 21, 2009 at 2:29 PM, Jean Legeande jean.legea...@gmail.com wrote: Dear R users, I would like to make my R code for MCMC faster. It is possible to integrate C code into R but I think C is too complicated for me. I would need a C introduction only for MCMC and I do not know if such

Re: [R] can R scripts detect signals sent by the task scheduler ?

2009-11-20 Thread Barry Rowlingson
On Fri, Nov 20, 2009 at 1:25 PM, mau...@alice.it wrote: In general, is it possible to run R scripts through cron jobs ? Yes, the only problem might be if you use anything that needs a graphics window. In the old days you needed an X11 display to create png graphics with the png() function, but

Re: [R] can R scripts detect signals sent by the task scheduler ?

2009-11-20 Thread Barry Rowlingson
On Fri, Nov 20, 2009 at 11:01 PM, mau...@alice.it wrote: I have just updated R version to 2.10 for Windows. I cannot find package fork which seems to include  the exception handling functions. The list that pops up when I select Install Package does not contain any fork package (even spelt

Re: [R] parsing Google search results

2009-11-17 Thread Barry Rowlingson
On Mon, Nov 16, 2009 at 7:29 PM, Philip Leifeld leif...@coll.mpg.de wrote: Hi, how can I parse Google search results? The following code returns integer(0) instead of 1 although the results of the query clearly contain the regex cran. address -

Re: [R] R crashing

2009-11-15 Thread Barry Rowlingson
On Sun, Nov 15, 2009 at 11:10 AM, Dimitri Szerman dimitri...@gmail.com wrote: Hello, This is what I am trying to do: I wrote a little function that takes addresses (coordinates) as input, and returns the road distance between every two points using Google Maps. Catch is, there are 2000

Re: [R] R crashing

2009-11-15 Thread Barry Rowlingson
On Sun, Nov 15, 2009 at 11:57 AM, Dimitri Szerman dimitri...@gmail.com wrote: Thanks. The reason I didn't want to do something like that is because, in the event of a crash, I'll loose everything that was done. That's why I though of appending the results often. Oops yes, I missed the

Re: [R] R, NIH and FDA

2009-11-13 Thread Barry Rowlingson
On Fri, Nov 13, 2009 at 11:21 AM, Federico Calboli f.calb...@imperial.ac.uk wrote: Dear All, I will soon be working with NIH and possibly FDA. Will I be able to use R or will I be forced to use SAS? Working with is different to Working for. Assuming they want to work with you then they want

Re: [R] polygon kills X-server

2009-11-10 Thread Barry Rowlingson
2009/11/10 Uwe Ligges lig...@statistik.tu-dortmund.de: This one is extraordinary dangerous: it also killed my kind of X server called Windows completely so that I had to reset the machine. Perhaps it should be debugged on the Linux side with less serious side effects The best way to

Re: [R] which data structure to choose to keep multile objects?

2009-11-07 Thread Barry Rowlingson
On Fri, Nov 6, 2009 at 11:58 PM, clue_less suhai_tim_...@yahoo.com wrote: I have a function called nnmf which takes in one matrix and  returns two matrices. for example, X     [,1] [,2] [,3] [,4] [1,]    1    4    7   10 [2,]    2    5    8   11 [3,]    3    6    9   12 z=nnmf(X,2)

Re: [R] read.table but more tables at once

2009-10-28 Thread Barry Rowlingson
On Wed, Oct 28, 2009 at 9:38 AM, Sybille Wendel wendel.sybi...@googlemail.com wrote: Dear all, I have a lot of data files (.txt) that I want to read in all at once, if possible. the files have names in time system. for example: RA940101, RA940102, RA940103, RA940104 an so on. (meaning: RA,

Re: [R] regression on large file

2009-10-28 Thread Barry Rowlingson
On Wed, Oct 28, 2009 at 11:50 AM, Georg Ehret georgeh...@gmail.com wrote: Dear R community,   I have a fairly large file with variables in rows. Every variable (thousands) needs to be regressed on a reference variable. The file is too big to load into R (or R gets too slow having done it) and

Re: [R] User input when running R code in batch mode

2009-10-27 Thread Barry Rowlingson
On Tue, Oct 27, 2009 at 9:20 AM, Kaushik Krishnan kaushik.s.krish...@gmail.com wrote: $ r --vanilla test.r a - scan(what='character',n=1); a 1: Read 0 items character(0) Now it's not working. Assuming this is a unix environment, the syntax ' test.r' means 'my standard input stream

Re: [R] Datasets for The Statistical Sleuth

2009-10-25 Thread Barry Rowlingson
On Sun, Oct 25, 2009 at 5:48 AM, Yihui Xie xieyi...@gmail.com wrote: Hi everyone, I wonder if there already exists any R packages containing all the data sets for the book The Statistical Sleuth (http://www.proaxis.com/~panorama/home.htm; also available at StatLib

Re: [R] arima crashes too

2009-10-23 Thread Barry Rowlingson
On Fri, Oct 23, 2009 at 12:32 PM, Alberto Monteiro albm...@centroin.com.br wrote: I mean that, if I run a loop, it doesn't finish. Or, more catastrophically, if I am running a loop and saving data to an open file, it terminates the loop and does not close the file. Reproducible example:

Re: [R] Determining which file is newer

2009-10-23 Thread Barry Rowlingson
On Fri, Oct 23, 2009 at 5:02 PM, Dennis Fisher fis...@plessthan.com wrote: Colleagues, I wish to execute a task only if a particular file is newer than a second file.  I can access the file modification dates using file.info()$mtime. This yields a time object (? POSIX).                      

Re: [R] arima crashes too

2009-10-22 Thread Barry Rowlingson
On Thu, Oct 22, 2009 at 6:19 PM, Alberto Monteiro albm...@centroin.com.br wrote: Another pathological test. arima does not crash for that series that crashes arma: arima(c(2.01, 2.22, 2.09, 2.17, 2.42), order=c(1,0,0)) However, arima crashes for this: arima(c(1.71, 1.78, 1.95, 1.59,

Re: [R] PDF too large, PNG bad quality

2009-10-22 Thread Barry Rowlingson
On Thu, Oct 22, 2009 at 8:28 PM, Greg Snow greg.s...@imail.org wrote: The problem with the pdf files is that they are storing the information for every one of your points, even the ones that are overplotted by other points.  The png file is smaller because it only stores information on which

Re: [R] News on R s largest corporate partner REVolution Computingand SPSS CEO:

2009-10-21 Thread Barry Rowlingson
On Wed, Oct 21, 2009 at 8:09 PM, Charles Annis, P.E. charles.an...@statisticalengineering.com wrote: David: Do you mean inappropriate or embarrassing? How would we R-ians know what has happened at REVolution were it not for Ajay's note?  Were you planning a press release?  Something like,

Re: [R] random numbers between 0 and 1

2009-10-21 Thread Barry Rowlingson
On Wed, Oct 21, 2009 at 8:37 PM, Gábor Csárdi csa...@rmki.kfki.hu wrote: I would suggest to use the generator at http://submoon.freeshell.org/pix/valium/dilbert_rng.jpg and subtract 8.5. You may laugh (indeed I did) but some medical trials have used (and poss still do) telephone-a-human

Re: [R] Variant of cloud with sticks from points to surface

2009-10-19 Thread Barry Rowlingson
On Mon, Oct 19, 2009 at 5:26 AM, PerfectTiling perfecttil...@yahoo.com wrote: Hi, I'd like to  (1) plot a perspective view of a 3D scatterplot, with a fitted (curved) surface;  (2) have a stick from each point vertically to the surface. The latter helps one visualize where a point lies

Re: [R] Pausing R

2009-10-19 Thread Barry Rowlingson
On Mon, Oct 19, 2009 at 2:01 PM, Karl Ove Hufthammer k...@huftis.org wrote: If you start the application using the command line, just press 'Ctrl + Z' to pause/suspend it. Then type 'fg' when you want to resume it. If you can't get to the command line where you started R, then you can send

Re: [R] Matrixes as data

2009-10-16 Thread Barry Rowlingson
On Fri, Oct 16, 2009 at 4:36 PM, Kjetil Halvorsen kjetilbrinchmannhalvor...@gmail.com wrote: Hola! I am working on a problem where data points are (square) matrices. Is there a way to make a vector of matrices, such that it can be stored in a data.frame? Can that be done with S3? or do I

Re: [R] Complex? import of pdf files (criminal records) into R table

2009-10-15 Thread Barry Rowlingson
On Thu, Oct 15, 2009 at 3:28 PM, Marc Schwartz marc_schwa...@me.com wrote: On Oct 15, 2009, at 3:43 AM, Biedermann, Jürgen wrote: You don't indicate the OS you are on, but you will want to get a hold of 'pdftotext', which is a command line application that can extract the textual content from

Re: [R] default borders in boxplot and barplot

2009-10-14 Thread Barry Rowlingson
On Wed, Oct 14, 2009 at 2:21 AM, Jennifer Young jennifer.yo...@math.mcmaster.ca wrote: This is my first post so hopefully I haven't mucked up the rules. I'm trying to change the default borders in either boxplot or barplot so that, at the request of a journal, all of my figures have the same

Re: [R] Function to find prime numbers

2009-10-13 Thread Barry Rowlingson
On Tue, Oct 13, 2009 at 2:41 PM, Thomas Lumley tlum...@u.washington.edu wrote: On Tue, 13 Oct 2009, AJ83 wrote: I need to create a function to find all the prime numbers in an array. Can anyone point me in the right direction? This almost sounds like a homework problem to me... So here's a

Re: [R] General means of matching a color specification to an official R color name

2009-10-13 Thread Barry Rowlingson
On Tue, Oct 13, 2009 at 9:43 PM, Bryan Hanson han...@depauw.edu wrote: Hello List Dwellers: I¹ve looked around quite a bit, but don¹t quite see an answer that I understand. I¹m looking for a way to take any kind of color specification (rgb, hsv, hcl, hex) and match it to the n-nearest R

Re: [R] General means of matching a color specification to an official R color name

2009-10-13 Thread Barry Rowlingson
On Tue, Oct 13, 2009 at 10:58 PM, Bryan Hanson han...@depauw.edu wrote: Works perfectly!  Thanks Barry.  I had actually seen some suggestions on using a distance, but by then I was thinking about hcl spaces and distance isn't so as simple there.  I'm too tired I think. Anyway, you've got me

Re: [R] How do I reverse the digits of a number

2009-10-11 Thread Barry Rowlingson
On Sun, Oct 11, 2009 at 12:53 PM, Gabor Grothendieck ggrothendi...@gmail.com wrote: Try this: library(tcltk) as.numeric(tcl(string, reverse, 123)) [1] 321 The bit where the original poster said 'unknown length' worried me: as.numeric(tcl(string, reverse, 12377656534)) [1] 0.4356568

Re: [R] Error in family$family : $ operator is invalid for atomic vectors

2009-10-11 Thread Barry Rowlingson
On Sun, Oct 11, 2009 at 4:54 PM, romunov romu...@gmail.com wrote: Dear List, I'm having problem with an exercise from The R book (M.J. Crawley) on page 567. Here is the entire code upto the point where I get an error. data(UCBAdmissions) x - aperm(UCBAdmissions, c(2, 1, 3))

Re: [R] Social networking around R

2009-10-11 Thread Barry Rowlingson
On Sun, Oct 11, 2009 at 7:51 PM, HBaize hba...@buttecounty.net wrote: Harsh-7 wrote: Hi R users, I'd be interested in what R users think about social networking around all things R. For this, I've set up a social network @ www.rstuff.socialgo.comand it would be great if you could post

Re: [R] Running R scripts from a GUI interface

2009-10-10 Thread Barry Rowlingson
On Sat, Oct 10, 2009 at 1:01 PM, Jason Rupert jasonkrup...@yahoo.com wrote: Thank you very much for your response and it looks like R Commander is very capable, but I think it is heading the wrong direction from where we are looking to go, i.e. simpler interface. I guess (and I may be

Re: [R] Problems with code

2009-10-09 Thread Barry Rowlingson
On Fri, Oct 9, 2009 at 4:54 PM, Anne Buunk ann3bu...@hotmail.com wrote:                          text(0.5,0.5, text = paste(letters[i], +, numbers[j],=, letters [i+j+k]) Missing ) on the end there. You have one ( for text( and one for paste( but only one ). Use an editor that matches

Re: [R] Satellite ocean color palette?

2009-10-09 Thread Barry Rowlingson
On Fri, Oct 9, 2009 at 7:51 PM, Tim Clark mudiver1...@yahoo.com wrote: Dear List, Is there a color palette avaliable similar to what is used in satellite ocean color imagery?  I.e. a gradient with blue on one end and red on the other, with yellow in the middle?  I have tried topo.colors(n)

Re: [R] Something wrong with my function Please Help

2009-09-29 Thread Barry Rowlingson
On Tue, Sep 29, 2009 at 4:29 AM, Chunhao Tu tu_chun...@yahoo.com wrote: Hi R users, I try to build a function to compute odds ratio and relative risk however something wrong. I stuck for many hours but I really don't know how to solve it. Would someone please give me a hint?

Re: [R] vectors levels are carried through to subsets...

2009-09-29 Thread Barry Rowlingson
On Tue, Sep 29, 2009 at 6:47 PM, chipmaney chipma...@hotmail.com wrote: I have a dataset.  Initially, it has 25 levels for a certain factor, Description. However, I then subset it, because I am only interested in 2 of the 25 factors.  When I subset it, I get the following. The vector lists

Re: [R] R and REST API's

2009-09-28 Thread Barry Rowlingson
On Mon, Sep 28, 2009 at 3:01 PM, Gary Lewis gary.m.le...@gmail.com wrote: Hi - Many organizations now make their data available as XML via a REST web service architecture. Is there any R package or facility to access this type of data directly (eg, to make the HTTP GET request and have the

Re: [R] Remove single entries

2009-09-28 Thread Barry Rowlingson
On Mon, Sep 28, 2009 at 5:03 PM, Raymond Danner rdan...@vt.edu wrote: Dear Community, I have a data set with two columns, bird number and mass.  Individual birds were captured 1-13 times and weighed each time.  I would like to remove those individuals that were captured only once, so that I

Re: [R] Is there any month object like LETTERS ?

2009-09-11 Thread Barry Rowlingson
On Fri, Sep 11, 2009 at 8:13 AM, megh megh700...@yahoo.com wrote: There is an object LETTERS which displays all letters from a to z. Is there any similar object whicg displays the months as well in chronological order? like jan, feb,...,dec You could construct a vector of the first

Re: [R] Running R in Windows server

2009-09-10 Thread Barry Rowlingson
On Thu, Sep 10, 2009 at 3:07 PM, srpd TCLTKsrpd2...@hotmail.com wrote: Hi, I'm trying to set up a server which allows different users to use R simultaneously. Is it possible in Windows? I know that a LINUX Server is probably a better option, but I had already created a GUI with Tcl/tk

Re: [R] Data separated by spaces, getting data into R using field lengths

2009-09-08 Thread Barry Rowlingson
On Tue, Sep 8, 2009 at 12:53 PM, Lauri Nikkinenlauri.nikki...@iki.fi wrote: I have a text file similar to this (separated by spaces): x - DF12 This is an example 1 This DF12 This is an 1232 This is DF14 This is 12334 This is an DF15 This 23 This is an example and I know the field lengths

Re: [R] Data separated by spaces, getting data into R using field lengths

2009-09-08 Thread Barry Rowlingson
On Tue, Sep 8, 2009 at 1:52 PM, Lauri Nikkinenlauri.nikki...@iki.fi wrote: But this is not the solution I was looking for. Thanks. I think the only way you'll get the solution you are looking for is if you can let us have a copy of the original input file, or at least the first few lines - and

<    1   2   3   4   5   6   7   >