Re: [Rd] readRegistry function (PR#12937)

2008-09-19 Thread Duncan Murdoch
On 9/19/2008 1:25 PM, [EMAIL PROTECTED] wrote: Full_Name: Zivan Karaman Version: 2.7.2 OS: Windows XP Submission from: (NULL) (195.6.68.214) I'm puzzled by the readRegistry function. Shouldn't the "hive" argument be something like c("HLM", "HCR", "HCU", "HU", "HCC", "HPD") rather than c("HLM

[Rd] readRegistry function (PR#12937)

2008-09-19 Thread zivan . karaman
Full_Name: Zivan Karaman Version: 2.7.2 OS: Windows XP Submission from: (NULL) (195.6.68.214) I'm puzzled by the readRegistry function. Shouldn't the "hive" argument be something like c("HLM", "HCR", "HCU", "HU", "HCC", "HPD") rather than c("HLM", "HCR", "HCU", "HU", "HCC, HPD"). For example,

Re: [Rd] Extract method for a new class

2008-09-19 Thread Martin Morgan
"Coster, Albart" <[EMAIL PROTECTED]> writes: > Dear list, > > I am trying to write a package for simulating meioses in R. We defined > a class 'haplotype' which contains the basic units of our simulation: > > setClass("haplotype",representation(snp = "numeric",qtl = "list", hID > = "numeric",phID0

[Rd] R spec file change for building on CentOS 5.2 (PR#12939)

2008-09-19 Thread agajania
--GZVR6ND4mMseVXL/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I built R 2.7.2 on CentOS 5.2 today. I used the R.spec file posted on the web site, but I had to change one line to get it to work. I have attached the diffs from my spec file to the original. (Otherwise,

[Rd] family="mono" does not work (PR#12931)

2008-09-19 Thread jaanvajakas
Full_Name: Jaan Vajakas Version: 2.7.2 OS: Windows XP Submission from: (NULL) (193.40.5.245) When I execute the following code in the R GUI, the text "mono" is printed in monotype font in the first plot, but in normal (sans-serif) font in the remaining three plots: op=par(mfrow=c(2,2)) for (i in

[Rd] Extract method for a new class

2008-09-19 Thread Coster, Albart
Dear list, I am trying to write a package for simulating meioses in R. We defined a class 'haplotype' which contains the basic units of our simulation: setClass("haplotype",representation(snp = "numeric",qtl = "list", hID = "numeric",phID0 = "numeric",phID1 =

Re: [Rd] indexing by character with identical names

2008-09-19 Thread Jake Michaelson
On Fri, 2008-09-19 at 11:07 +0100, Barry Rowlingson wrote: > Some people may think it sensible that indexing a vector with an > index of length N returns a vector of length N: > > > x[c("a","b","a")] > a b a > 1 2 1 I also thought of this side of it after I sent the original email, and I rea

Re: [Rd] indexing by character with identical names

2008-09-19 Thread Barry Rowlingson
2008/9/19 Jake Michaelson <[EMAIL PROTECTED]> > ... that is, if a vector has identical (and therefore ambiguous) names, > it only returns the first match when the vector is indexed by a > non-unique name. From my perspective, a more sensible behavior would be > to return *all* elements which carr

[Rd] indexing by character with identical names

2008-09-19 Thread Jake Michaelson
Hi all, I've been using R for a while, but was puzzled when I just barely noticed this behavior: > x <- 1:10 > names(x) <- c("a","b","a",letters[1:7]) > x a b a a b c d e f g 1 2 3 4 5 6 7 8 9 10 > x["a"] a 1 ... that is, if a vector has identical (and therefore ambiguous