Re: [R] Problem assigning "NA" as a level name in a list

2008-12-16 Thread Cliff Behrens
Very good...thanks! As you can tell, I really haven't made much (READ any) previous use of this list. Cliff Ben Bolker wrote: Cliff Behrens-3 wrote: For future reference, am I to assume that no contributed packages should be implicated in resolving a problem? It does

Re: [R] Problem assigning "NA" as a level name in a list

2008-12-16 Thread Cliff Behrens
ontributed packages should be implicated in resolving a problem? Peter Dalgaard wrote: Cliff Behrens wrote: Peter, I've inserted response inline below: Cliff Peter Dalgaard wrote: Cliff Behrens wrote: Peter, OK...here is reproducible, self-contained code: library(gregmisc) Relying on a 3r

Re: [R] Problem assigning "NA" as a level name in a list

2008-12-16 Thread Cliff Behrens
Peter, I've inserted response inline below: Cliff Peter Dalgaard wrote: Cliff Behrens wrote: Peter, OK...here is reproducible, self-contained code: library(gregmisc) Relying on a 3rd party package is not kosher either... Whatever did list("NA"=2) or l <- list(2); name

Re: [R] Problem assigning "NA" as a level name in a list

2008-12-16 Thread Cliff Behrens
lowing showing that the name "NA" is treated differently: .. $Na NULL $`NA` NULL $Nb NULL . Peter Dalgaard wrote: Cliff Behrens wrote: I want to generate a list (called "dataList" below) where each of its levels is named. These names are assigned to nameList

[R] Problem assigning "NA" as a level name in a list

2008-12-16 Thread Cliff Behrens
lt;- nameList ## The "NA" in nameList is interpreted so that the name "NA" is missing for one level in dataList I am running R 2.4.1 in the Windows XP environment. Thanks for any help that can be offerred. Cliff Behrens __ R

[R] Listing factor levels for elements of letters in an rpart plot

2007-11-29 Thread Cliff Behrens
I would like to create a list of factor levels represented by elements of letters shown in an rpart plot. It seems that the order of levels for a factor are different than the alphabetized order returned a simple list command, e.g., rpartModel$factor_name. I was also wondering how best to mod