Re: [Rd] using R functions in a C loop

2014-07-08 Thread Sean O'Riordain
Enrico, I was in a similar position with a small likelihood function which was not vectorizable (is that a word?) and in one morning I had a working function using Rcpp which was 60 times faster than my reference function in R. I *strongly* recommend that you use C++ through the Rcpp interface whic

Re: [Rd] wishlist: decreasing argument to is.unsorted

2014-01-04 Thread Sean O'Riordain
The more general alternative Gabor in this case would be a stopif() function... I often find myself having to think too much with stopifnot(!is.X()) Sean On 4 January 2014 00:24, Gábor Csárdi wrote: > While we are here, how about an is.sorted() function? It is trivial > and helps readability

Re: [Rd] Huge performance difference between implicit and explicit print

2013-10-31 Thread Sean O'Riordain
Minor point and probably not relevant to the speed issue, but df() is the density function for the F distribution, so I have (recently) stopped using it for referring to data.frames. Sean On 30 October 2013 23:32, Gabriel Becker wrote: > Hadley, > > As far as I can tell from a quick look, it is

Re: [Rd] Possible POSIXlt / wday glitch & bugs.r-project.org status

2013-10-05 Thread Sean O'Riordain
Some people (luckily not me anymore!) working with mortgages and pensions need to calculate up to 40 years into the future for the payment schedule. On 5 October 2013 02:37, Joshua Ulrich wrote: > On Fri, Oct 4, 2013 at 8:02 PM, Imanuel Costigan wrote: >> Thanks for the responses and quoting the

[Rd] broken link in docs for Binormial functions

2013-08-10 Thread Sean O'Riordain
On the local documentation page for Binomial, i.e. http://127.0.0.1:/library/stats/html/Binomial.html The link to Catherine Loader's paper "Catherine Loader (2000). *Fast and Accurate Computation of Binomial Probabilities*; available from http://www.herine.net/stat/software/dbinom.html."; app

[Rd] Issue with Control-Z in a text file on Windows - readLines() appears to truncate

2013-04-10 Thread Sean O'Riordain
txt # [1] "1,34,44.4,\" A\032A \",99" This was on 64-bit R on a 64-bit Windows 7, but it also appears to be the case in a 32-bit R 2.15.2 on 32-bit Windows-7 inside in a VirtualBox. Kind regards, Sean O'Riordain Trinity College Dublin __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Fwd: R unzip method gives filenames as character

2013-04-09 Thread Sean O'Riordain
Question: would it be better if the contents list of the unzip() function returned the filenames as character rather than factor since they are probably unique strings? > tmp <- unzip(fnam, list=TRUE) > str(tmp) 'data.frame': 31 obs. of 3 variables: $ Name : Factor w/ 31 levels "fred1.csv",..

[Rd] possible minor doc clarification?

2011-04-25 Thread Sean O'Riordain
Good afternoon, As a clarification does it make sense to remove the second 'not' in the 'See Also' documentation for file_test ? Kind regards, Sean O'Riordain - Index: src/library/utils/man/filetest.Rd

Re: [Rd] R command line and pipe using in Linux?

2011-02-14 Thread Sean O'Riordain
Good afternoon Hang, This is an example of what I've done with a csv file with a header which is too big to read into memory. # this is a file with about 50 columns and 28 million records ap.fnam <- 'p2_all28m_records.csv' # lets just explore the columns in Addresspoint... # by reading in the hea

[Rd] possible minor mis-spelling in "R Data Import/Export"

2010-12-16 Thread Sean O'Riordain
Good morning, Could this be a mis-spelling in the development (revision 53854) and release version of "R Data Import/Export" ? Kind regards, Sean O'Riordain Dublin un-affiliated... svn diff r-devel/R/doc/manual/ Index: r-devel/R/doc/man

Re: [Rd] GPL and R Community Policies (Rcpp)

2010-12-01 Thread Sean O'Riordain
right notice once the project has been distributed. The only way this could happen is if the project is completely rewritten from scratch by people who have not worked on the project using a 'clean-room' methodology - this seems quite unlikely. Just a thought, Kind regards, Sean O'R

Re: [Rd] No RTFM?

2010-08-22 Thread Sean O'Riordain
are more gentle, but these were "not encouraged". In the posting guide and in some r-help posts there have been demands for details of affiliation - my work current work contract (and many previous contracts) makes it difficult for me to put my work details on an email to r-help (or simil

Re: [Rd] sample on data.frame

2010-02-20 Thread Sean O'Riordain
7;t used it in ages :-) Kind regards, Sean O'Riordain Dublin Ireland On Fri, Feb 19, 2010 at 9:05 PM, Stavros Macrakis wrote: > Currently, sample of a data.frame is a sample of the columns: > > e.g. sample(data.frame(a=1,b=2:3,c=4),2) => data.frame(b=2:3,c=c(4,4)) > > I&

Re: [Rd] Rcpp: Clarifying the meaning of GPL?

2009-12-23 Thread Sean O'Riordain
Good afternoon, While I don't know the history of this particular conflict - to me the entire *purpose* of the GPL is to ALLOW forking of code which must remain in public. If somebody forks code and makes any change whatsoever and then distributes either the diff or the entire previous project, t

Re: [Rd] how to document stuff most users don't want to see

2009-10-06 Thread Sean O'Riordain
In some cases it would be nice to have a lot of examples explaining the different uses of different parameters instead of the more usual. I like the way in which log4j allows one to parameterise at runtime the verboseness of different parts of a runtime. So hypothetically (and assuming a lot!) on

Re: [Rd] Windows Laptop specification query

2009-09-27 Thread Sean O'Riordain
Good morning Keith, Have a look at http://cran.r-project.org/bin/windows/base/rw-FAQ.html#There-seems-to-be-a-limit-on-the-memory-it-uses_0021 The short answer is that "it depends"... a) memory is limited under windows b) R is essentially a serial program - HOWEVER it depends what you're actually

Re: [Rd] incorrect result (41/10-1/10)%%1 (PR#13863)

2009-08-03 Thread Sean O'Riordain
Good morning Jan, Could this be covered off by the following? http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f Kind regards, Sean On Sat, Aug 1, 2009 at 9:05 PM, wrote: > Full_Name: jan hattendorf > Version: 2.9.0 > OS: XP > Submission from: (NU

[Rd] spelling buglet - files.Rd

2009-05-30 Thread Sean O'Riordain
. } kind regards, Sean O'Riordain unaffiliated... [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] 2009 Wish list for R

2009-01-17 Thread Sean O'Riordain
Can I add a windows specific wish please? I'd like to be able to double click on a word in the console and select it, rather than have to manually select - silly I know but I'm constantly going back and forth between R and other programs where I can do this and I still haven't managed to train my

[Rd] minor typo in duplicated.Rd (lemgth != length)

2008-12-17 Thread Sean O'Riordain
s...@sean7:~/R/RSVN/R/trunk/src/library$ svn diff Index: base/man/duplicated.Rd === --- base/man/duplicated.Rd (revision 47231) +++ base/man/duplicated.Rd (working copy) @@ -64,7 +64,7 @@ not be efficient for a very large

[Rd] trivial spelling correction

2008-12-01 Thread Sean O'Riordain
Good evening, Spotted a very minor spelling mistake in the source for the grep help. And thanks to R-Core for all their work - it's a tribute to R-Core, that these sort of "problems" are rare indeed. Best regards, Sean O'Riordain Dublin [EMAIL PROTECTED]:~/R/RSVN/R/trunk/

Re: [Rd] Posting Guide

2008-06-07 Thread Sean O'Riordain
Gabor, I agree. Furthermore I think it might be useful to add that in my experience (and I'm sure others as well) that the process of creating a simple reproduceable example for an email to r-help will in most cases clarify what I'm trying to do and actually solve my own problem for me - once or t

Re: [Rd] cpu usage high with windows change dir / winDialogString (PR#11045)

2008-03-29 Thread Sean O'Riordain
Hi Duncan, I suspect that it's not the SHBrowseForFolder call as it seems fine once the Browse button is pressed - the problem occurs *before* the Browse button is pressed. Regards, Sean On 29/03/2008, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 29/03/2008 12:23 PM, Gabor Grothendieck wrote:

Re: [Rd] cpu usage high with windows change dir / winDialogString (PR#11045)

2008-03-29 Thread Sean O'Riordain
Good afternoon Duncan, Thanks for that. See below for my reply. Best Regards, Sean On 29/03/2008, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 28/03/2008 12:05 PM, [EMAIL PROTECTED] wrote: > > Good afternoon, > > > > This is possibly a windows only bug, definitely of comparatively low > >

Re: [Rd] cpu usage high with windows change dir / winDialogString (PR#11045)

2008-03-29 Thread Sean O'Riordain
. 5 year old Linux machine) at home I'm no longer reliant on the ancient laptop for everyday use! All the best, Sean On 29/03/2008, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 29/03/2008 1:10 PM, Sean O'Riordain wrote: > > Hi Duncan, > > > > I suspect

Re: [Rd] IPC

2005-08-21 Thread Sean O'Riordain
with a simple GET request in plain R, go for it, but as Duncan says, you need to beware of character encoding. s/ On 21/08/05, Duncan Temple Lang <[EMAIL PROTECTED]> wrote: > Sean O'Riordain wrote: > > for very low bandwidth IPC I'd just use a standard web page form using >

Re: [Rd] IPC

2005-08-21 Thread Sean O'Riordain
for very low bandwidth IPC I'd just use a standard web page form using a GET... so all you have to do is call a URL with the parameters embedded in the URL, e.g. http://silly.name.for.server.com/javaServlet?a=42&b=394&c=1982&d=complex If your bandwidth requirements are a bit higher then you have