Re: [Rd] What do you call the value that represents a missing argument?

2010-10-08 Thread Charles C. Berry
On Fri, 8 Oct 2010, Hadley Wickham wrote: Hi all, What's the official name for the value that represents a missing argument? e.g. formals(plot)$x See ?list It is a 'dotted pair list' Are you looking for 'alist'? "alist handles its arguments as if they described function arguments. So the

Re: [Rd] NULL assignment will change the expression's class into list

2010-10-08 Thread Duncan Murdoch
Vitalie Spinu wrote: On Fri, Oct 8, 2010 at 7:49 PM, Duncan Murdoch wrote: On 08/10/2010 12:24 PM, Vitalie Spinu wrote: On Fri, Oct 8, 2010 at 12:14 PM, Duncan Murdoch wrote: Vitalie Spinu wrote: Hello Everyone! NULL replacement will change expression

Re: [Rd] R 2.12.0 alpha/beta/rc warning: spurious or not?

2010-10-08 Thread Dirk Eddelbuettel
On 8 October 2010 at 15:11, Martin Morgan wrote: | On 10/08/2010 01:25 PM, Dirk Eddelbuettel wrote: | > | > With several versions of R 2.12.0 I have been seeing this when running | > | > R CMD build Rcpp | > | > from the SVN sources: | > | > [...] | > Transcript written on Rd2.log. | >

[Rd] What do you call the value that represents a missing argument?

2010-10-08 Thread Hadley Wickham
Hi all, What's the official name for the value that represents a missing argument? e.g. formals(plot)$x str(formals(plot)$x) deparse(formals(plot)$x) is.symbol(formals(plot)$x) What's the correct way to create an object like this? (for example if you are manipulating the formals of a function t

Re: [Rd] R 2.12.0 alpha/beta/rc warning: spurious or not?

2010-10-08 Thread Martin Morgan
On 10/08/2010 01:25 PM, Dirk Eddelbuettel wrote: > > With several versions of R 2.12.0 I have been seeing this when running > > R CMD build Rcpp > > from the SVN sources: > > [...] > Transcript written on Rd2.log. > Saving output to '/home/edd/svn/rcpp/pkg/Rcpp/build/Rcpp.pdf' ... > W

[Rd] R 2.12.0 alpha/beta/rc warning: spurious or not?

2010-10-08 Thread Dirk Eddelbuettel
With several versions of R 2.12.0 I have been seeing this when running R CMD build Rcpp from the SVN sources: [...] Transcript written on Rd2.log. Saving output to '/home/edd/svn/rcpp/pkg/Rcpp/build/Rcpp.pdf' ... Warning in file.create(to[okay]) : cannot create file '/home/edd/svn

Re: [Rd] NULL assignment will change the expression's class into list

2010-10-08 Thread Vitalie Spinu
On Fri, Oct 8, 2010 at 7:49 PM, Duncan Murdoch wrote: > On 08/10/2010 12:24 PM, Vitalie Spinu wrote: > >> On Fri, Oct 8, 2010 at 12:14 PM, Duncan Murdoch> >wrote: >> >> > Vitalie Spinu wrote: >> > >> >> Hello Everyone! >> >> >> >> NULL replacement will change expression object into list: >> >>

Re: [Rd] NULL assignment will change the expression's class into list

2010-10-08 Thread Duncan Murdoch
On 08/10/2010 12:24 PM, Vitalie Spinu wrote: On Fri, Oct 8, 2010 at 12:14 PM, Duncan Murdochwrote: > Vitalie Spinu wrote: > >> Hello Everyone! >> >> NULL replacement will change expression object into list: >> >> >> >>> te<- expression(a=23*4, b=33-2) >>> te >>> >>> >> expression(a = 23 *

Re: [Rd] NULL assignment will change the expression's class into list

2010-10-08 Thread Vitalie Spinu
On Fri, Oct 8, 2010 at 12:14 PM, Duncan Murdoch wrote: > Vitalie Spinu wrote: > >> Hello Everyone! >> >> NULL replacement will change expression object into list: >> >> >> >>> te <- expression(a=23*4, b=33-2) >>> te >>> >>> >> expression(a = 23 * 4, b = 33 - 2) >> >> >> >>> te[["a"]] <- quote(blab

Re: [Rd] model.frame deficiency

2010-10-08 Thread Prof Brian Ripley
At least for me, the problem is not to do with the length of formula. You have a term in the formula with a very long name, and there are several places that can go wrong. For example, for the N=20 version I get model.frame(as.formula(temp2), tdata) -> foo foo Error in do.call("data.frame"

[Rd] Selecting multiple columns with same name

2010-10-08 Thread Martin Kerr
Hello all, I've been working on a project involving clustering algorithms and I've hit a bit of a snag. I have my main data frame with is 31 X 1000, I have fed this into dif and hclust in order to produce a 31 item vector stating the perceived grouping of the columns.E.g. 1 1 1 1 2 2 2 2 1 1 1

Re: [Rd] NULL assignment will change the expression's class into list

2010-10-08 Thread Duncan Murdoch
Vitalie Spinu wrote: Hello Everyone! NULL replacement will change expression object into list: te <- expression(a=23*4, b=33-2) te expression(a = 23 * 4, b = 33 - 2) te[["a"]] <- quote(blabla) #ok te expression(a = blabla, b = 33 - 2) te[["a"]] <- NULL #change to list

[Rd] NULL assignment will change the expression's class into list

2010-10-08 Thread Vitalie Spinu
Hello Everyone! NULL replacement will change expression object into list: > > te <- expression(a=23*4, b=33-2) > te expression(a = 23 * 4, b = 33 - 2) > te[["a"]] <- quote(blabla) #ok > te expression(a = blabla, b = 33 - 2) > te[["a"]] <- NULL #change to list > te $b 33 - 2 I am on w32, versio