similar to: (no subject)

Displaying 20 results from an estimated 300 matches similar to: "(no subject)"

2002 Dec 04
2
difftime arithmetic (PR#2345)
Full_Name: Barry Rowlingson Version: 1.6.0 OS: RH8 i386 Submission from: (NULL) (148.88.136.205) Strange things happen if I premultiply a difftime() object with a number. Example: > d1 <- difftime(Sys.time(),Sys.time()) > d2 <- 1 * difftime(Sys.time(),Sys.time()) > d3 <- difftime(Sys.time(),Sys.time()) * 1 > d1 Time difference of 0 secs - thats fine > d2 [1] 0
2006 Nov 03
1
Translation of R code required
Dear All I am a complete novice when it comes to R. I have been sent some code which I need to run on a dataset. I have downloaded and installed R but I dont seem to be able to get the code to run. I was hoping someone on the list would be able to give me a 'translation' of what the code is trying to do and if there appears to be any errors in it. The code is; mental <-
2009 May 22
2
Scope problem?
I've just spent today trying to fix a Heisenbug... this function returns a linear interpolator function: interpOne <- function(xl,yl){ f = function(data){ t = (data-min(xl))/(max(xl)-min(xl)) return(min(yl)+t*(max(yl)-min(yl))) } return(f) } > k=interpOne(c(0,1),c(4,5)) > k(0.5) [1] 4.5 and this function uses the above to return a function that returns a piece-wise
2002 Nov 04
1
longjmp - was: seemingly random "nesting of readline input" w arnings
Barry, Would you mind providing the necessary patch for this behavior? Thanks, Greg > -----Original Message----- > From: Barry Rowlingson [mailto:B.Rowlingson@lancaster.ac.uk] > Sent: Monday, November 04, 2002 8:04 AM > To: r-devel@stat.math.ethz.ch > Subject: Re: longjmp - was: seemingly random "nesting of > readline input" > warnings > > > Luke
2019 Feb 02
1
Runnable R packages
I see some value in Duncan?s proposal to implement this as an extra package instead of a change to base R, if only to see if the idea has legs. I?m minded to do so myself using your suggestion, but is there a particular reason why you recommend using the remotes package instead of devtools? The latter seems to have the same functions I would need, and I believe it is more widely installed that
2007 Oct 29
4
Joining a Linux Machine to a Windows 2003 Active Directory Domain
Hey all, I'm trying to join a Linux machine running CentOS 5, Samba version 3.0.23 to a Windows 2003 Active Directory. I can authenticate successfully against Kerberos, but I cannot seem to join the domain. I'm using instructions from this article
2013 Oct 04
0
R-help Digest, Vol 128, Issue 5
Hi Peter, The ssconvert tool (part of gnumeric) is very good at converting spreadsheets to csv-files. There is a wrapper in the "gnumeric" package on cran. Cheers, Thomas > Date: Fri, 4 Oct 2013 09:08:50 +0100 > From: Barry Rowlingson <b.rowlingson at lancaster.ac.uk> > To: Peter Maclean <pmaclean2011 at yahoo.com> > Cc: "r-help at r-project.org"
2018 Jul 03
0
base::mean not consistent about NA/NaN
Thank you for interesting examples. I would find useful to document this behavior also in `?mean`, while `+` operator is also affected, the `sum` function is not. For mean, NA / NaN could be handled in loop in summary.c. I assume that performance penalty of fix is the reason why this inconsistency still exists. Jan On Mon, Jul 2, 2018 at 8:28 PM, Barry Rowlingson < b.rowlingson at
2018 Jul 26
0
Possible bug: R --slave --interactive stdin echo on Linux when stdin is a fifo
On Thu, Jul 26, 2018 at 1:43 PM <luke-tierney at uiowa.edu> wrote: > > On Thu, 26 Jul 2018, G?bor Cs?rdi wrote: > > > On Thu, Jul 26, 2018 at 12:25 PM Barry Rowlingson > > <b.rowlingson at lancaster.ac.uk> wrote: > >> > >> On Thu, Jul 26, 2018 at 12:22 AM, G?bor Cs?rdi <csardi.gabor at gmail.com> wrote: > >>> I am trying to
2018 Sep 18
0
diag(-1) produces weird result
Yes, both are rooted in age-old design infelicities (in which, basically, interactive expedience has taken precedence over consistency and generality). Unfortunately, they are quite difficult to rectify, because there are bound to be countless uses of, say, diag(5) as a 5x5 identity matrix which would break if it suddenly meant the 1x1 matrix(5) instead. We'd need a very carefully
2019 Feb 01
0
Runnable R packages
Ummm oops. Magic pixies? It assumed all of CRAN was installed? Maybe I'll write something that could go in /usr/lib/R/bin/RUN that checks and gets deps, installs the package, and runs package::main, which I think is what the OP wants - you could do R CMD RUN foo_1.0.0.tar.gz and away it goes... B On Thu, Jan 31, 2019 at 3:56 PM David Lindelof <lindelof at ieee.org> wrote: > >
2019 Feb 01
0
Runnable R packages
To download a package with all its dependencies and install it, use the install.packages() functions instead of 'R CMD INSTALL'. E.g., in bash: mkdir /tmp/libJunk env R_LIBS_SITE=libJunk R --quiet -e 'if (!requireNamespace("purrr",quietly=TRUE)) install.packages("purrr")' For corporate "production use" you probably want to set up your own repository
2019 Feb 02
0
Runnable R packages
Creating an .exe file isn't necessarily difficult. The main problems are that you have to write and compile the C (or other) files. Otherwise, the complexity depends on the level of Inter Process Communication that's required. Simply starting R with some initial conditions, is easy. Even if you want to prompt the user to install missing packages, it isn't necessarily difficult. It
2003 Jun 17
0
plot.formula
Thanks to Andy Liaw and Baz for alternatives to tinkering with plot.formula to get plot(cbind(y1,y2) ~ x, ...) to work. However... > From: "Liaw, Andy" <andy_liaw at merck.com> matplot(x, cbind(y1, y2), ...) > From: Barry Rowlingson <B.Rowlingson at lancaster.ac.uk> xyplot(y1+y2~x,data=xyy,allow.multiple=T) The former requires separate code for the
2018 Jul 03
0
base::mean not consistent about NA/NaN
On Tue, Jul 3, 2018 at 10:12 AM, Jan Gorecki <j.gorecki at wit.edu.pl> wrote: > Thank you for interesting examples. > I would find useful to document this behavior also in `?mean`, while `+` > operator is also affected, the `sum` function is not. `sum` is "affected" on my system, if you mean: > sum(c(NA,NaN)) [1] NA > sum(c(NaN,NA)) [1] NaN oh, maybe you mean:
2019 Feb 07
1
Runnable R packages
Doesn't Rtools provide everything needed to build R packages and R on Windows - including gcc? Am Sa., 2. Feb. 2019 um 22:29 Uhr schrieb Abs Spurdle <spurdle.a at gmail.com>: > Creating an .exe file isn't necessarily difficult. > The main problems are that you have to write and compile the C (or other) > files. > Otherwise, the complexity depends on the level of Inter
2006 Jan 25
0
lazy evaluation (was RE: Number of replications of a term)
From: Thomas Lumley > > On Wed, 25 Jan 2006, Ray Brownrigg wrote: > > > There's an even faster one, which nobody seems to have > mentioned yet: > > > > rep(l <- rle(ids)$lengths, l) > > I considered this but it wasn't clear to me from the initial > post that > each ID occupied a contiguous section of the vector. > > Also, lazy
2004 Jul 25
1
Multiple comparisons: its a trap!
Peter Dalgaard <p.dalgaard at biostat.ku.dk> writes: > > Barry Rowlingson <B.Rowlingson at lancaster.ac.uk> writes: > > > Liaw, Andy wrote: > > > Stupid me: fell into this trap: > > > > > >>0 == 0 == 0 > > > [1] FALSE > > > > > > > Ouch! > > > > Python's comparison operators don't have this
2018 Jul 26
1
Possible bug: R --slave --interactive stdin echo on Linux when stdin is a fifo
On Thu, 26 Jul 2018, G?bor Cs?rdi wrote: > On Thu, Jul 26, 2018 at 1:43 PM <luke-tierney at uiowa.edu> wrote: >> >> On Thu, 26 Jul 2018, G?bor Cs?rdi wrote: >> >>> On Thu, Jul 26, 2018 at 12:25 PM Barry Rowlingson >>> <b.rowlingson at lancaster.ac.uk> wrote: >>>> >>>> On Thu, Jul 26, 2018 at 12:22 AM, G?bor Cs?rdi
2010 Mar 08
2
Monetary support to the R-project (Was: Re: Executable for Production Use)
On Mon, Mar 8, 2010 at 8:46 PM, Barry Rowlingson <b.rowlingson at lancaster.ac.uk> wrote: > On Mon, Mar 8, 2010 at 6:44 PM, Ma Ismail - NewYork-MEAG-NY > <ima at meag-ny.com> wrote: >> Hi, >> >> A few of the developers on our Quant team are using R for data calculation and to generate a [snip] > ?I've noticed a lot of financial corporates getting into R