Re: [Rd] Quiz: How to get a "named column" from a data frame

2012-08-18 Thread Christian Brechbühler
On 8/18/12, Martin Maechler wrote: > On Sat, Aug 18, 2012 at 5:14 PM, Christian Brechbühler wrote: >> On Sat, Aug 18, 2012 at 11:03 AM, Martin Maechler >> wrote: >>> Consider this toy example, where the dataframe already has only >>> one column : >&g

Re: [Rd] How to create arbitrary number of loops

2012-03-29 Thread Christian Brechbühler
On Wed, Mar 28, 2012 at 5:34 PM, Dai, Hongying, wrote: > Dear R users, > > I'm wondering how I can generate an arbitrary number of loops in R. > For instance, I can generate two "for" loops to get ICC among any two-way > combination among 10 variables. Here is the code > > n<-10 > for (i in 1:(n-

Re: [Rd] 00LOCK and nfs

2010-04-26 Thread Christian Brechbühler
On Mon, Apr 26, 2010 at 11:15 AM, Kasper Daniel Hansen < kasperdanielhan...@gmail.com> wrote: > I am running into a problem with the 00LOCK file and .nfs files. It > seemed to be caused by the following > R is installed on NFS > user A has loaded pkg_A containing a dynamically loaded library >

Re: [Rd] Polymorphism of predict

2009-08-19 Thread Christian Brechbühler
ant. Thank you /Christian > > -Original Message- > > From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r- > > project.org] On Behalf Of Christian Brechbühler > > Sent: Monday, August 17, 2009 2:54 PM > > To: r-de...@stat.math.ethz.ch > > Su

[Rd] Polymorphism of predict

2009-08-18 Thread Christian Brechbühler
I can fit a line to a set of given points, e.g., > sm.fit <- smooth.spline(1:4,1:4) > lm.fit <- lm(y~x, data=list(x=1:4,y=1:4)) Now I have two objects representing the straight line y(x)=x, of class "smooth.spline" and "lm", respectively. And as could be expected in object orientation, both have

Re: [Rd] (PR#8192) [ subscripting sometimes loses names

2009-02-01 Thread Christian Brechbühler
Andy had written: > >... The drop=FALSE argument has nothing to do with what > >Christian was talking about. The kind of thing he meant is PR# 8192, > >"Subject: [ subscripting sometimes loses names": > > > > http://bugs.r-project.org/cgi-bin/R/wishlist?id=8192 > On Sun, Feb 1, 2009 at 12:25 PM

Re: [Rd] (PR#8192) [ subscripting sometimes loses names

2009-01-31 Thread Christian Brechbühler
On Sat, Jan 31, 2009 at 10:13 AM, Peter Dalgaard wrote: > Duncan Murdoch wrote: > >> On 31/01/2009 7:31 AM, Andrew Piskorski wrote: >> >>> On Fri, Jan 30, 2009 at 11:51:00AM -0500, Simon Urbanek wrote: >>> Subject: Re: [Rd] (PR#13487) Segfault when mistakenly calling [.data.frame >>

Re: [Rd] (PR#13487) Segfault when mistakenly calling [.data.frame

2009-01-30 Thread Christian Brechbühler
On Thu, Jan 29, 2009 at 4:44 PM, Prof Brian Ripley wrote: > What did your actual application do? This seems a very strange thing to > do, and the segfault is in trying to construct the traceback. > > Only by using do.call on the object (and not even by name) do I get this > error. E.g. > > `[.d

Re: [Rd] Truncation error on simply mean & sum function (PR#12515

2008-08-08 Thread Christian Brechbühler
On Fri, Aug 8, 2008 at 7:30 AM, <[EMAIL PROTECTED]> wrote: > Full_Name: Tom Wang > Version: 2.6.2 > OS: Linux, Windows > Submission from: (NULL) (61.230.6.228) > > > I've found an instance: > > > a <- c(0.187,-0.019,0.074,-0.06,0.221,-0.079,0.12,0.079,-0.281,-0.242) > > sum(a) > [1] -2.428613e-17

Re: [Rd] strsplit and the empty string

2008-06-18 Thread Christian Brechbühler
On Wed, Jun 18, 2008 at 8:45 AM, Wacek Kusnierczyk <[EMAIL PROTECTED]> asked for opinions: > > When the pattern > matches the beginning of the search string, the empty string is added to > the result, but that's not the case when the pattern matches the end of > the search string: > > strsplit(" he

Re: [Rd] (PR#10379) Re: x11(....) kills R without DISPLAY

2007-10-29 Thread Christian Brechbühler
On 10/29/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > > The problem is that the XtOpenDisplay call did not specify the display. > Easily fixed > On 10/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > The culprit would seem to be this bit of devX11.c > > 1302