Re: [R] How to open grib file in R?

2013-01-15 Thread Barry Rowlingson
On Mon, Jan 14, 2013 at 6:26 PM, Jonsson amen.alya...@bordeaux.inra.fr wrote: I have just contacted the sources and I am told that he checked min/max lat/lon for the file and it was right. He is using Linux while I am using Windows, would that be problematic? gdalinfo on a Linux box says it

Re: [R] How to open grib file in R?

2013-01-14 Thread Barry Rowlingson
On Mon, Jan 14, 2013 at 4:36 PM, Jonsson amen.alya...@bordeaux.inra.fr wrote: but I got this error: C:\Users\aalyaari\Desktop\Vol_025_H14_2010060700.grib has GDAL driver GRIB and has 721 rows and 1440 columns Error in validityMethod(as(object, superClass)) : Geographical CRS given to

Re: [R] Reading extremly large comma separated files?

2012-12-19 Thread Barry Rowlingson
On Wed, Dec 19, 2012 at 9:47 AM, Öhagen Patrik patrik.oha...@mpa.se wrote: Dear List, Are there any tricks or wise suggestions on how to import huge comma separated files into R? We have used the ordinary read syntax but it takes forever How huge is huge? What is 'the ordinary read

Re: [R] An important question about running MCMC

2012-12-13 Thread Barry Rowlingson
On Thu, Dec 13, 2012 at 3:22 AM, Chenyi Pan cp...@virginia.edu wrote: Dear officer I have a question concerning running R when I am doing my research. Can you help me to figure that out? I am now running a MCMC iteration in the R program. But it is always stucked in some loop. This cause big

Re: [R] Problem in Starting R Server - object of type 'closure' is not subsettable

2012-11-27 Thread Barry Rowlingson
On Tue, Nov 27, 2012 at 6:33 AM, Manoj G mano...@isim.net.in wrote: Hi All, I am trying to start R Server to run some Java Script in my local machine using the library, 'Rook'. I use Windows 7. And my codes are following, library(Rook) myD3dir - 'D:\\STUDIES\\Java script\\d3-master' s -

Re: [R] Why do i get Error: unexpected input in A-lm(GandW ~ Authocracy, Data)

2012-11-25 Thread Barry Rowlingson
On Sun, Nov 25, 2012 at 12:15 PM, F86 farad...@gmail.com wrote: Dear Bruno, I sitll get this message, even when iam using , Error: unexpected input in A-lm(GandW ~ Authocracy,Data) You're on a Mac, you say? Try googling for R unexpected error - Macs do some crazy things:

Re: [R] Why do i get Error: unexpected input in A-lm(GandW ~ Authocracy, Data)

2012-11-25 Thread Barry Rowlingson
On Sun, Nov 25, 2012 at 2:01 PM, Rui Barradas ruipbarra...@sapo.pt wrote: Hello, Another possibility is to use argument 'data' explicitly: A-lm(GandW ~ Authocracy, data = Data) Hope this helps, It's not going to. The line parses very nicely as written, with or without naming the

Re: [R] function call from another r file

2012-11-24 Thread Barry Rowlingson
On Sat, Nov 24, 2012 at 12:26 PM, Suzen, Mehmet msu...@gmail.com wrote: If you want to handle a generic case, best thing is to create an R package. And better than best is to use devtools to save you a fiddly edit/build/install cycle. You don't even have to think of it as a package, its just a

Re: [R] Is it possible to be sponsored by R?

2012-11-20 Thread Barry Rowlingson
On Mon, Nov 19, 2012 at 9:39 PM, Christophe Genolini cgeno...@u-paris10.fr wrote: Hi the list, I am a member of the organizing comity of the French Statistics Association (SFdS)'s conference. We are looking for sponsors. Some software (SAS, RITME, ...) are represented. Do you know if there

Re: [R] decorating API in R

2012-11-09 Thread Barry Rowlingson
On Fri, Nov 9, 2012 at 9:10 PM, Tom Roche tom_ro...@pobox.com wrote: How best to implement a decorator pattern in R? What I mean, why I ask: A group of ncdf4 users is trying to make it easier (notably for ourselves :-) to write correctly IOAPI-formatted netCDF. Since IOAPI

Re: [R] difference percentile R vs SPSS

2012-11-08 Thread Barry Rowlingson
On Thu, Nov 8, 2012 at 12:17 PM, David A. dasol...@hotmail.com wrote: In R: normal200-rnorm(200,0,1) You forgot set.seed(310366) so we can reproduce your random numbers exactly. I think the main difference is that SPSS only calculates critical values within the range of values in the

Re: [R] export variable from bash to R

2012-10-30 Thread Barry Rowlingson
On Tue, Oct 30, 2012 at 2:03 PM, sophie melanie.bi...@bluewin.ch wrote: Hi Barry Thank you very much for your reply. I changed my scripts according to your suggestions - this is how they look now: #!/bin/bash VARIABLES=( a b c d ) for i in ${VARIABLES[@]}; do export

Re: [R] export variable from bash to R

2012-10-30 Thread Barry Rowlingson
On Tue, Oct 30, 2012 at 4:34 PM, sophie melanie.bi...@bluewin.ch wrote: Hi Barry, I already tried adding print commands, but even if I put the print command right under myscript - function(), there is no printed output in the shell... If your script is just: myscript - function(){ #

Re: [R] How can I map numbers to colours with raster?

2012-10-29 Thread Barry Rowlingson
On Mon, Oct 29, 2012 at 9:13 AM, Jonsson amen.alya...@bordeaux.inra.fr wrote: This code will read binary file and display it as a map. may problem is that this code is using a continuous colour scheme, even though I have discrete data (which is a classification scheme). How can I map numbers

Re: [R] export variable from bash to R

2012-10-29 Thread Barry Rowlingson
On Mon, Oct 29, 2012 at 10:43 AM, sophie melanie.bi...@bluewin.ch wrote: Dear R experts This probably seems very easy to you guys, but I'm a beginner and would be really glad if someone helped me with this: I am trying to automate the execution of an R script (let's call it myscript.R) by

Re: [R] Mirror of the R manuals with a new visual style

2012-10-23 Thread Barry Rowlingson
On Tue, Oct 23, 2012 at 12:37 PM, Jon Clayden jon.clay...@gmail.com wrote: Dear all, I've created a new mirror of the HTML versions of the main R manuals at http://r-manuals.flakery.org. This mirror does not modify the content of the manuals at all, but simply injects a new visual style with

Re: [R] How to replicate SAS by group processing in R

2012-10-11 Thread Barry Rowlingson
On Wed, Oct 10, 2012 at 7:09 PM, ramoss ramine.mossad...@finra.org wrote: In SAS I use the following code: proc sort data=upper; by tdate stock_symbol expire strike; run; data upper1; set upper; by tdate stock_symbol expire strike; if first.expire then output; rename

Re: [R] Failure of sas7bdat package

2012-10-04 Thread Barry Rowlingson
On Thu, Oct 4, 2012 at 4:55 PM, Fisher Dennis fis...@plessthan.com wrote: R 2.15.1 OS 10.7 Colleagues I have been an enthusiastic user of the sas7bdat package in R. However, several recent sas7bdat files sent to me from different sources cannot be read by the package. The error message

Re: [R] Failure of sas7bdat package

2012-10-04 Thread Barry Rowlingson
On Thu, Oct 4, 2012 at 6:07 PM, Nordlund, Dan (DSHS/RDA) nord...@dshs.wa.gov wrote: Looking at the source code on github, Matt has already added W32_7PRO to the list of known hosts. So, you could download the source tarball and build the package yourself, or just extract the SAS7bdat.R file

Re: [R] R and sell buy stock

2012-09-27 Thread Barry Rowlingson
On Wed, Sep 26, 2012 at 8:24 PM, baycan global baycanglo...@gmail.com wrote: Hi all, I have seen that R can be switched on to a Broker called IB. There is another one similar to IB that permits to make a code and send orders to broker to buy or sell stocks? Can be done trough R, writte in

Re: [R] Inclusion of a countdown tool of remaining calculation time possible?

2012-09-21 Thread Barry Rowlingson
2012/9/21 jennifer.moeller-gull...@de.pwc.com jennifer.moeller-gull...@de.pwc.com: Dear All, We are currently working with very large datasets which even in R require a lot of calculation time. Is there an option of including a function/ tool or something alike which shows the remaining time

Re: [R] Tendonitis and R users

2012-09-06 Thread Barry Rowlingson
On Sep 4, 2012 5:45 PM, Bert Gunter gunter.ber...@gene.com wrote: I may be out of line here, but I fail to see what on earth this has to do with R and why this thread should be continued here. Perhaps I'll write an R function that hooks into the console prompt and reminds users every N minutes

Re: [R] r-forge down?

2012-08-08 Thread Barry Rowlingson
On Wed, Aug 8, 2012 at 12:40 AM, Duncan Murdoch murdoch.dun...@gmail.com wrote: This is presumably a temporary condition. It has been up recently, but it is summer, and some people take vacations, so I won't give an expected uptime. There's a note on that web page now explaining there's

Re: [R] On Reproducible Code

2012-07-27 Thread Barry Rowlingson
On Fri, Jul 27, 2012 at 6:47 PM, Hadley Wickham had...@rice.edu wrote: I'd argue that both assumptions are false. People are particular well trained to skip over boilerplate text at the bottom of emails. One day the list owner will subtly change the boilerplate text at the bottom of R-help

Re: [R] Hire person to convert R code to SAS

2012-07-23 Thread Barry Rowlingson
On Mon, Jul 23, 2012 at 6:19 PM, Frank Harrell f.harr...@vanderbilt.edu wrote: It would make much more sense to convert in the opposite direction. Frank I got the fear when I saw the unit of R code length was '[presumably MS] Word pages'. We had one student who wrote all her R code in MS

Re: [R] Dissolve polygon

2012-07-20 Thread Barry Rowlingson
On Fri, Jul 20, 2012 at 4:51 PM, Celine bellard.cel...@gmail.com wrote: Hi, I am working with a SpatialPolygonsDataFrame of many islands. There are a lot of polygons (islands) composing my SpatialPolygonsDataFrame. I want to extract the elevation of each island. Is each island a row in

Re: [R] plotting points to a map

2012-07-18 Thread Barry Rowlingson
On Wed, Jul 18, 2012 at 7:41 PM, Gary Dong pdxgary...@gmail.com wrote: For your second question: 1) by relative long and lat, I mean distances to the city center from south-north and east-west directions. 2) I know the coordinate of the reference point. The problem here is that going 10

Re: [R] define stuff to be only usable in the same file

2012-07-11 Thread Barry Rowlingson
On Tue, Jul 10, 2012 at 4:02 PM, Jessica Streicher j.streic...@micromata.de wrote: Forget about that, i'm stupid and can't use the tools available... Here's something I wrote specially for all you wonderful stupid people out there... https://gist.github.com/3025606 What it tries to do is

Re: [R] registry vulnerabilities in R

2012-05-09 Thread Barry Rowlingson
On Tue, May 8, 2012 at 4:10 PM, Paul Martin pamar...@alum.mit.edu wrote:   Kirtland Air Force Base has denied approval for the use of R on its   Windows network. Some of their objections seem a bit strange, but some   appear  to  be  legitimate. In particular, they have detected registry  

Re: [R] What is the most cost effective hardware for R?

2012-05-09 Thread Barry Rowlingson
On Wed, May 9, 2012 at 2:22 PM, John Laing john.la...@gmail.com wrote: For 200,000 analyses at 1.5 seconds each, you're looking at ~83 hours of computing time. You can buy time from Amazon at roughly $0.08 / core / hour, so it would cost about $7 to run your analyses in the cloud. Assuming

Re: [R] registry vulnerabilities in R

2012-05-09 Thread Barry Rowlingson
Someone said: Once R is accepted, you could ask for an RStudio test if you want. I had another thought shortly after my initial email. Suppose yes, R is accepted. Great. You run R. Then you think, Oh, I need ggplot2 (yes you do). Do you then have to get security clearance for every package

Re: [R] What is the most cost effective hardware for R?

2012-05-08 Thread Barry Rowlingson
On Tue, May 8, 2012 at 11:49 AM, Hugh Morgan h.mor...@har.mrc.ac.uk wrote: Has anyone got any advice about what hardware to buy to run lots of R analysis?  Links to studies or other documents would be great as would be personal opinion. We are not currently certain what analysis we shall be

[R] lanyrd site for useR! 2012

2012-04-28 Thread Barry Rowlingson
There's now a page on lanyrd (the social conference directory) for useR! 2012 in Nashville: http://lanyrd.com/2012/useR/ its basically a site for making social mini-networks for conferences, so people can post up links, share photos, list talks, etc. If people going sign up then it'll look a

Re: [R] .rda vs. .RData

2012-04-24 Thread Barry Rowlingson
On Tue, Apr 24, 2012 at 12:51 AM, Jeff Newmiller jdnew...@dcn.davis.ca.us wrote: My bad, I was thinking of rds (?saveRDS). RData and rda are mentioned under ?data as alternate file extensions for the same data format. Sorry for posting without checking first. Understandable mistake.

Re: [R] slanted stacked bar graphs?

2012-04-09 Thread Barry Rowlingson
On Mon, Apr 9, 2012 at 7:29 AM, Susanna Makela susanna.m.mak...@gmail.com wrote: Hello R users, I would like to generate slanted stacked bar graphs like those on the bottom of pages 1 and 2 in this document: http://www.wssinfo.org/fileadmin/user_upload/resources/JMP-Snapshot-SWA-HLM.pdf .

Re: [R] plot points using circles filled half in red and half in blue.

2012-03-28 Thread Barry Rowlingson
On Wed, Mar 28, 2012 at 11:02 AM, Eik Vettorazzi e.vettora...@uke.de wrote: Hi Alan, on an UTF-8 locale you can use \u25D6 and \u25D7, but you have to plot group a=4 twice. The problem with that is that by default the two half-circles will be centred on the point location, so won't join look

Re: [R] Improving help in R

2012-03-15 Thread Barry Rowlingson
2012/3/14 Tomáš Křehlík tomas.kreh...@gmail.com: Hello R people I get the feeling (by some experience with learning programming languages when I am not primarily a programmer but economist/statistician) that structure of help really helps and I would like to have it to go in the way basic

Re: [R] Reading in 9.6GB .DAT File - OK with 64-bit R?

2012-03-08 Thread Barry Rowlingson
On Thu, Mar 8, 2012 at 6:19 PM, RHelpPlease rrum...@trghcsolutions.com wrote: Hi there, I wish to read a 9.6GB .DAT file into R (64-bit R on 64-bit Windows machine) - to then delete a substantial number of rows then convert to a .csv file. Upon the first attempt the computer crashed (at some

Re: [R] Embed R code in online database

2012-02-12 Thread Barry Rowlingson
On Sat, Feb 11, 2012 at 5:49 PM, Jokel Meyer jokel.me...@googlemail.com wrote: Dear R-List! I would like to embed R code in an online database such as i.e. a google spreadsheet in way that users can add data to the database and that R's calculations are updated automatically and i.e. given

Re: [R] Best way to remove all objects but leave the functions in a workspace.

2012-02-07 Thread Barry Rowlingson
Best? Probably not. No money back if this deletes everything by mistake: remove(list=ls()[sapply(ls(),function(n){!is.function(get(n))})]) As a function, maybe: clearNonF=function(e=.GlobalEnv){remove(list=ls(e)[sapply(ls(e),function(n){!is.function(get(n))})],envir=e)} clearNonF() will clear

Re: [R] an unusual use for R

2012-02-06 Thread Barry Rowlingson
On Mon, Feb 6, 2012 at 5:14 PM, Richard M. Heiberger r...@temple.edu wrote: I love it.  I hope you are planning a talk at the UseR!2012 in Nashville. Maybe we'll have hand-woven R-logo lanyards for our conference badges? Get weaving Sarah! Barry __

Re: [R] Why was the ‘doSMP’ package removed from CRAN?

2012-01-26 Thread Barry Rowlingson
On Thu, Jan 26, 2012 at 8:02 AM, Uwe Ligges lig...@statistik.tu-dortmund.de wrote: On 25.01.2012 22:20, Tal Galili wrote: Does any one know the reason for this? Is this a technical or a legal (e.g: license) issue? If legal issues were the reason, you had not found it in the archives

Re: [R] Coloring Canada provinces (package maps?)

2012-01-26 Thread Barry Rowlingson
On Thu, Jan 26, 2012 at 4:03 PM, Dimitri Liakhovitski dimitri.liakhovit...@gmail.com wrote: Barry, thanks a lot! I was able to read in Candian data set from gadm: library(raster) # Finding ISO3 code for Canada getData('ISO3')  # Canada's code is CAN # Reading in data at different levels

Re: [R] Coloring Canada provinces (package maps?)

2012-01-25 Thread Barry Rowlingson
On Wed, Jan 25, 2012 at 9:25 PM, Dimitri Liakhovitski dimitri.liakhovit...@gmail.com wrote: Dear R'ers, I am wondering what is the smallest geographicterritorial unit available for formatting in Canada. Provinces? I know that in the US it is the county so that I can color US counties any

Re: [R] Calling Fortran from R: Issues with dynamic loading of fortran dll

2012-01-16 Thread Barry Rowlingson
On Mon, Jan 16, 2012 at 12:09 AM, Duncan Murdoch murdoch.dun...@gmail.com wrote: 3.  Find out what name got exported, and use .C instead of .Fortran to call that. For example, when compiling Fortran subroutines within modules, the exported name on my system (gcc on Ubuntu of some flavour)

Re: [R] Word Wrap

2012-01-15 Thread Barry Rowlingson
On Sun, Jan 15, 2012 at 4:40 PM, Francisco franciscororol...@google.com wrote: Hello, I have to write a big sentence with cat() and I would like that R automatically adds a new line when it is needed (when the text arrives at the end of the window), the same as Windows Notepad does (Word

Re: [R] syntax for reading into R

2012-01-02 Thread Barry Rowlingson
On Mon, Jan 2, 2012 at 3:31 PM, Marion Wenty marion.we...@gmail.com wrote: .  trkpt lat=48.272000 lon=16.342984    ele387/ele    time2012-01-01T15:32:03Z/time    sat9/sat  /trkpt  trkpt lat=48.271909 lon=16.343563    ele381/ele    time2012-01-01T15:32:34Z/time    sat9/sat  /trkpt ...

Re: [R] syntax for reading into R

2012-01-02 Thread Barry Rowlingson
On Mon, Jan 2, 2012 at 3:54 PM, Barry Rowlingson b.rowling...@lancaster.ac.uk wrote:  That looks suspiciously like a chunk of a GPX format file - GPS tracks, that kind of thing. Am I right? If so, then get the rgdal package, and read it in. You'll end up with a spatial data frame of some

Re: [R] R Source Code Request Office For National Statistics UK

2011-12-23 Thread Barry Rowlingson
On Wed, Dec 21, 2011 at 1:06 PM, David Samuel david.sam...@ons.gsi.gov.uk wrote: To R Support Team, Could you please let me know if ONS would be allowed to view your software's source code? If proof was ever needed that people don't read software license agreements, this is it. Is there a

Re: [R] Looking for package 'rgp'

2011-12-18 Thread Barry Rowlingson
On Sun, Dec 18, 2011 at 4:29 AM, David Winsemius dwinsem...@comcast.net wrote: On Dec 17, 2011, at 9:30 PM, Worik R wrote: Installing package(s) into ‘/home/worik/R/x86_64-pc-linux-gnu-library/2.12’ Pick a repository that is not unavailable on Sunday in hte very early morning? And also

Re: [R] Load Libraries from list

2011-12-15 Thread Barry Rowlingson
On Thu, Dec 15, 2011 at 1:19 PM, anaraster rrast...@gmail.com wrote: Hi How can I load libraries from a list containing the library names? Something like this ListOfLibraries=c(foreign,survival) for (in in 1:length(ListOfLibraries)){library(as.name(ListOfLibraries[i]))} I already tried

Re: [R] bizarre seq() behavior?

2011-11-23 Thread Barry Rowlingson
On Wed, Nov 23, 2011 at 12:17 PM, Rainer Schuermann rainer.schuerm...@gmx.net wrote: You have a dot (not a comma) after 8: seq(2,8.1,length.out=3) On Wednesday 23 November 2011 06:59:12 Czerminski, Ryszard wrote: Is there any rational explanation for the bizarre seq() behavior below?

Re: [R] Import Access MDB on line

2011-11-18 Thread Barry Rowlingson
On Fri, Nov 18, 2011 at 12:15 PM, Raphael Saldanha saldanha.plan...@gmail.com wrote: Hi! I need to import an Access MDB database from this FTP address: ftp://geoftp.ibge.gov.br/Organizacao/Localidades/cadastro_localidades_selecionadas.mdb I tried with Hmisc mdb.get and RODBC without

Re: [R] Import Access MDB on line

2011-11-18 Thread Barry Rowlingson
On Fri, Nov 18, 2011 at 1:53 PM, Raphael Saldanha saldanha.plan...@gmail.com wrote: I would like to import this dataset direct into R, without saving the file on disk (for using the most updated file), You don't really have much choice - I'm certain that the mdb-tools won't read from a

[R] New site for Scientific Computing Q+A

2011-11-15 Thread Barry Rowlingson
If anyone has ever hesitated about posting a question to R-help that might be less about R and more about scientific computing in general (algorithms, datasets etc) then you might be interested in a proposed new site on StackExchange:

Re: [R] plotting a bivariate quadratic curve

2011-11-12 Thread Barry Rowlingson
On Sat, Nov 12, 2011 at 10:50 AM, Yackov Lubarsky yluba...@gmail.com wrote: Hi, I would like to plot a x,y curve described by the equation : Ax^2 + Bx + Cy^2 + Dy + E == 0 (A,B,C,D,E are constants) This sounds like quite the common task but haven't been able to figure out how to do this.

Re: [R] Web based R-help not a list

2011-11-10 Thread Barry Rowlingson
On Thu, Nov 10, 2011 at 7:32 PM, Cem Girit gi...@biopticon.com wrote: Somebody suggested Stackoverflow problems as well. These could all be avoided. I think you misunderstood the mention of 'Stackoverflow'. This is a solution, not a problem! StackOverflow (www.stackoverflow.com) is a

Re: [R] drawing ellipses in R

2011-11-01 Thread Barry Rowlingson
On Tue, Nov 1, 2011 at 4:49 AM, mms...@comcast.net wrote: Hello, I have been following the thread dated Monday, October 9, 2006 when Kamila Naxerova asked a question about plotting elliptical shapes. Can you explain the equations for X and Y. I believe they used the parametric form of x

Re: [R] 3 Overlayed simple plots

2011-10-31 Thread Barry Rowlingson
On Mon, Oct 31, 2011 at 8:54 AM, Rolf Turner rolf.tur...@xtra.co.nz wrote: On 31/10/11 21:13, Alaios wrote: Dear all, I am plotting 3 plots into the same x and y axis. I want the first one to be painted red with a continuous line The second one green with a continuous line and the third one

Re: [R] how to save an R object to a remote computer

2011-10-23 Thread Barry Rowlingson
On Sun, Oct 23, 2011 at 7:46 PM, Molly Davies mollymdav...@gmail.com wrote: Hello, I am running R remotely on my university's network from my laptop (Macbook Pro, running leopard, in case this is useful). I have a strict limit on how much disk space I can take up on my network account at

Re: [R] Help w/an old R program I've rediscovered and want to make work

2011-10-22 Thread Barry Rowlingson
On Sat, Oct 22, 2011 at 8:41 PM, pce369 pce...@hotmail.com wrote: I found an old R program I wrote som eyears back and I'd like to make work in 2.11.1 (or a more recent version), but am having two problems: 1. I can't seem to access the datafile it requires. I'm not sure where the default

Re: [R] goofy class question

2011-10-12 Thread Barry Rowlingson
On Wed, Oct 12, 2011 at 8:46 AM, Erin Hodgess erinm.hodg...@gmail.com wrote: Dear R People: Here is a really goofy question. I have some objects which have 2 classes: data.frame and ucr. Also, the classes will always be in that order. I have tried all sorts of things, but to no avail.

Re: [R] SPlus to R

2011-10-05 Thread Barry Rowlingson
On Wed, Oct 5, 2011 at 2:53 AM, Scott Raynaud scott.rayn...@yahoo.com wrote: I'm trying to convert an S-Plus program to R.  Since I'm a SAS programmer I'm not facile is either S-Plus or R, so I need some help.  All I did was convert the underscores in S-Plus to the assignment operator -. 

Re: [R] SPlus to R

2011-10-05 Thread Barry Rowlingson
On Wed, Oct 5, 2011 at 12:44 PM, Scott Raynaud scott.rayn...@yahoo.com wrote: Hope I did this right.  I repeated what I'd done before: 1) Opened script 2) Selected run all (this produced my inital post Then as suggested I: 3) Typed ls() 4) Saw that the function was present and issued

Re: [R] SPlus to R

2011-10-05 Thread Barry Rowlingson
On Wed, Oct 5, 2011 at 4:54 PM, Scott Raynaud scott.rayn...@yahoo.com wrote: It seems I have things set up correctly.  I suspect that the arguments sshc(100,10) are the isuue.  It seems that the 100,10 is not necessary since the code itself specifies the arguments.  It runs and produces a power

Re: [R] isotope superscripts ggplot2

2011-09-30 Thread Barry Rowlingson
On Fri, Sep 30, 2011 at 4:31 PM, Durant, James T. (ATSDR/DTEM/PRMSB) h...@cdc.gov wrote: Happy Friday fellow R users. I need some help - I am trying to make a graph using ggplot 2 of some lead isotope ratios. Normally, the isotope mass number appears as a  superscript before the chemical

Re: [R] creating a vector automatically containing numbers 1, 100, 10000, 1000000, ...

2011-09-27 Thread Barry Rowlingson
On Tue, Sep 27, 2011 at 9:33 AM, Marion Wenty marion.we...@gmail.com wrote: hello, i am looking for a way to get a vector containing the numbers: 1,100,1,100,... each element should have two ceros more than the one before it until the number 1e+200 without using a loop.

Re: [R] searching several subsequences in a single string sequence

2011-09-27 Thread Barry Rowlingson
On Tue, Sep 27, 2011 at 5:51 PM, Marcelo Araya marcelo...@gmail.com wrote: Hi all I am analyzing bird song element sequences. I would like to know how can I get how many times a given subsequence is found in single string sequence. For example: If I have this single sequence:

Re: [R] searching several subsequences in a single string sequence

2011-09-27 Thread Barry Rowlingson
On Tue, Sep 27, 2011 at 6:15 PM, Jean V Adams jvad...@usgs.gov wrote: For example, songs - c(ABCABAABABABCAB, ABACAB, ABABCABCBC) counts - gregexpr(ABC, songs) sapply(counts, length) That will still return '1' for the case where its not found, because of the -1.

Re: [R] R crash

2011-09-21 Thread Barry Rowlingson
On Wed, Sep 21, 2011 at 8:57 AM, Ivan Calandra ivan.calan...@uni-hamburg.de wrote: Dear users, I therefore don't provide a reproducible example and do not really extract the relevant parts of the script because it has most likely nothing to do with the script itself. I can do it though if you

Re: [R] R crash

2011-09-21 Thread Barry Rowlingson
On Wed, Sep 21, 2011 at 10:12 AM, Ivan Calandra ivan.calan...@uni-hamburg.de wrote: Dear Barry, Thanks for your input, that is indeed a very good idea (shame on me not to have thought about it...). As expected, it works fine on Windows XP, but crashes on Windows 7 at dev.off (which means

Re: [R] Creating a map with central Asian countries

2011-09-15 Thread Barry Rowlingson
On Thu, Sep 15, 2011 at 8:41 AM, Salaam Batur swordligh...@gmail.com wrote: Dear all, I am trying to create a map for central asian countries(Kazakhstan, Uzbekstan, Kyrgyzstan, Turkmenstan, and Tajikstan). I tried google for shapefiles and Rdata files of central asia, but I can't seem to find

Re: [R] Bug or feature? sum(c(a, b, c)) != (a + b + c)

2011-08-23 Thread Barry Rowlingson
On Tue, Aug 23, 2011 at 8:17 PM, Daniel Lai dan...@bccrc.ca wrote: Greetings all, I'm porting an algorithm from MATLAB to R, and noticed some minor discrepancies in small decimal values using rowSums and colSums which are exacerbated after heavy iteration and log space transformation. This

Re: [R] Floats in Microsoft Basic format

2011-08-10 Thread Barry Rowlingson
On Wed, Aug 10, 2011 at 2:34 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 10/08/2011 5:58 AM, taraxacum wrote: Hi all, I need to convert a floating point value from Microsoft Basic format to IEEE format. There's a simple way to achieve this in R or I have to write my own function?

Re: [R] Question on RNG

2011-08-05 Thread Barry Rowlingson
On Fri, Aug 5, 2011 at 8:54 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: As far as I know, Microsoft doesn't publish the code for their RNG. Naming it is not enough -- implementations that differ in subtle details will give different streams. Sometimes these subtle software differences

Re: [R] Running R in a sandbox

2011-08-03 Thread Barry Rowlingson
On Wed, Aug 3, 2011 at 9:04 AM, Antonio Rodriges antonio@gmail.com wrote: Hello, The idea is to grant access of remote users to R running on Linux. Users must have ability to run their R scripts but avoid corrupting the operating system. Ordinary users can't corrupt the operating system

Re: [R] Display/show the evaluation result of R commands automatically

2011-07-31 Thread Barry Rowlingson
h - taskCallbackManager() h$add(function(expr, value, ok, visible) {if(!visible){print(value)};TRUE}) On Sun, Jul 31, 2011 at 12:15 PM, Anthony Ching Ho Ng anthony.ch...@gmail.com wrote: Hello R-help, I wonder if it is possible to configure R, so that it will display/show the evaluation

Re: [R] Can R (without GUI) be compiled with static linking?

2011-07-29 Thread Barry Rowlingson
On Thu, Jul 28, 2011 at 10:54 PM, Jonathan Callahan jonat...@mazamascience.com wrote: One of their requirements (hard or soft?) is that each module in the framework be compiled with statically linked libraries into a standalone binary that can be run from the command line. But if they insist

Re: [R] HIRHAM netcdf files

2011-07-29 Thread Barry Rowlingson
       float lat(rlat, rlon) ;                lat:standard_name = latitude ;                lat:long_name = latitude ;                lat:units = degrees_north ;        float lon(rlat, rlon) ;                lon:standard_name = longitude ;                lon:long_name = longitude ;        

Re: [R] HIRHAM netcdf files

2011-07-29 Thread Barry Rowlingson
On Fri, Jul 29, 2011 at 4:32 PM, Roy Mendelssohn roy.mendelss...@noaa.gov wrote: Actually this file, as it contents state, follow the CF convention, which is widely used in climate science, oceanography and atmospheric science  (see http://cf-pcmdi.llnl.gov/documents/cf-conventions).  The

Re: [R] Creating png of layered legend

2011-07-26 Thread Barry Rowlingson
On Tue, Jul 26, 2011 at 12:23 AM, Amelia McNamara amelia.mcnam...@stat.ucla.edu wrote: I am trying to create a plot that has multiple plot characters for each point (e.g. a point within a triangle, a triangle within a square, etc). The workaround I have found to do this is by plotting twice,

Re: [R] function lm, get back the coefficient

2011-07-26 Thread Barry Rowlingson
On Tue, Jul 26, 2011 at 4:21 PM, ascoquel ascoq...@yahoo.fr wrote: Hi, I've done a linear fit on my data and I would like to get back the a (time) coefficient ... mod-lm(res_sql2$Lx0x~0+time) result-data.frame() result-coef(mod) print(result) print(result) [1] result      time

Re: [R] Create a map

2011-07-24 Thread Barry Rowlingson
On Sat, Jul 23, 2011 at 10:04 AM, Amy Ruiz amyrui...@gmail.com wrote:  Hello: I'm using the library of maps, however, I need to use a map of Puerto Rico, but apparently does not exist. I wanted to know if there is any way that I can create that map? The 'maps' package (not 'library') is a

Re: [R] Understanding R's Environment concept

2011-07-18 Thread Barry Rowlingson
On Mon, Jul 18, 2011 at 7:16 PM, Nipesh Bajaj bajaj141...@gmail.com wrote: Hi all, I am trying to understand the R's environment concept however the underlying help files look quite technical to me. Can experts here provide me some more intuitive ideas behind this concept like, why it is

Re: [R] Running R on a Computer Cluster in the Cloud - cloudnumbers.com

2011-07-12 Thread Barry Rowlingson
On Tue, Jul 12, 2011 at 7:15 AM, Markus Schmidberger schmi...@in.tum.de wrote: This is only a selection of our top features. To get more information check out our web-page (http://www.cloudnumbers.com/) or follow our blog about cloud computing, HPC and HPC applications (with R):

Re: [R] NetCDF, open *.nc

2011-07-11 Thread Barry Rowlingson
On Mon, Jul 11, 2011 at 2:57 PM, kokavolchkov kokavolch...@gmail.com wrote: mode=wb: AFAIK You have taken the professor somewhat too literally. AFAIK means As Far As I Know. The 'mode=wb' goes *inside* the download.file function call. It modifies the default behaviour of download.file. STL

Re: [R] Storing and managing custom R functions for re-use

2011-07-09 Thread Barry Rowlingson
On Sat, Jul 9, 2011 at 2:37 PM, Abhijit Dasgupta, PhD aikidasgu...@gmail.com wrote: I think most of us are in a similar situation. I've usually kept mine in a file which is sourced when I start R. The main problem I have with this is that it clutters up my environment with a lot of stuff I

Re: [R] Making a new package: licence

2011-07-08 Thread Barry Rowlingson
On Fri, Jul 8, 2011 at 4:07 PM, Federico Calboli f.calb...@imperial.ac.uk wrote: On 8 Jul 2011, at 15:56, Spencer Graves wrote: Ok, thanks for that. I though that, since R in under GPL-v2, I can only release my code under GPL-v2 because the code is written in R and probably qualifies as a

Re: [R] Making a new package: licence

2011-07-08 Thread Barry Rowlingson
On Fri, Jul 8, 2011 at 4:16 PM, Federico Calboli f.calb...@imperial.ac.uk wrote: The vast majority of CRAN libraries seem to be released under some sort of GPL version. I never seen a license though. You're right. The GNU people say should: http://www.gnu.org/licenses/gpl-howto.html ---

Re: [R] finding the intersection of two vectors

2011-07-07 Thread Barry Rowlingson
On Wed, Jul 6, 2011 at 9:43 PM, Data Analytics Corp. w...@dataanalyticscorp.com wrote: close enough.  I can't figure out how to find the price value at which the two curves intersect.  Going back to the economics interpretation, I want the price where supply equals demand.  Any suggestions as

Re: [R] Protecting R code

2011-07-04 Thread Barry Rowlingson
On Mon, Jul 4, 2011 at 8:47 AM, Vaishali Sadaphal vaishali.sadap...@tcs.com wrote: Hi All, I need to give my R code to my client to use. I would like to protect the logic/algorithms that have been coded in R. This means that I would not like anyone to be able to read the code. At some

Re: [R] Protecting R code

2011-07-04 Thread Barry Rowlingson
On Mon, Jul 4, 2011 at 5:48 PM, Vaishali Sadaphal vaishali.sadap...@tcs.com wrote: Hey All, Thank you so much for quick replies. Looks like translation to C/C++ is the only robust option. Do you think there exists any ready-made R to C translator? No, I think they are normally all born

Re: [R] parse XML file

2011-06-29 Thread Barry Rowlingson
On Wed, Jun 29, 2011 at 8:17 AM, Kai Serschmarn serschm...@googlemail.com wrote: Hi all, this is my first post in this mailing group. I hope that anyboby could help me parsing a xml file. I found this website http://www.omegahat.org/RSXML/gettingStarted.html but unfortunately my XML file is

Re: [R] Standards for delivery of GPL software in CRAN packages

2011-06-27 Thread Barry Rowlingson
On Mon, Jun 27, 2011 at 1:24 PM, Galkowski, Jan jgalk...@akamai.com wrote: I wondered if there were standard practices in CRAN for delivery of R source implementing functions in R packages. I has encountered a couple of packages where the gzipped version of source contains very little,

Re: [R] calling R from C

2011-06-25 Thread Barry Rowlingson
On Sat, Jun 25, 2011 at 4:18 PM, Desi Ap des...@yahoo.com wrote: I read R extensions on calling R within c code. I am on windows vista, cygwin and R-2.13.0.I can compile link the c code with following commands$gcc -I/cygdrive/c/Progra~1/R/R-2.13.0/include -c -ggdb Rhello.c

Re: [R] Pass Vector from R to C

2011-06-18 Thread Barry Rowlingson
On Sat, Jun 18, 2011 at 7:08 PM, Jaimin Dave davejaim...@gmail.com wrote: Hi , I have a function which passes a vector from R to C. However the size of the vector is decided inside the c program. But as I have to pass the size while calling the function from R lot of my space is getting

Re: [R] How to create a numeric data.frame

2011-06-13 Thread Barry Rowlingson
On Mon, Jun 13, 2011 at 11:06 AM, Aparna aparna.sampat...@gmail.com wrote: Hi All I am new to R and  I am not sure of how this should be done. I have a matrix of 985x100 values and the class is data.frame. You don't have a 'matrix' in the R sense of the word. You seem to have a table of

Re: [R] Inspecting C code in an R package

2011-06-11 Thread Barry Rowlingson
On Sat, Jun 11, 2011 at 5:31 PM, Layman123 romanhorn...@web.de wrote: Thank you! Of course, I will read the posting guidelines. A subscriber helped me via e-mail telling me to use the grep-command, that is type in: grep somename *.c. For Windows users it's: findstr somename *.c. The problem

Re: [R] Can we prepare a questionaire in R

2011-06-09 Thread Barry Rowlingson
On Thu, Jun 9, 2011 at 11:09 AM, amrita gs ammasamri...@gmail.com wrote: I will explain more clearly I have an online feedback form which has all the form elements like radiobuttons,checkboxes,textareas,textboxes etc. I have to get the values of these form elements and use it for data

Re: [R] Can we prepare a questionaire in R

2011-06-08 Thread Barry Rowlingson
On Wed, Jun 8, 2011 at 12:56 PM, amrita gs ammasamri...@gmail.com wrote: How can we create HTML forms in R HTML is Just Plain Text, so you can create them using R's text output 'cat' function. E.g. cat('form First name: input type=text name=firstname /br /Last name: input type=text

<    1   2   3   4   5   6   7   >