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

2008-12-16 Thread Cliff Behrens
I am running R 2.4.1 in the Windows XP environment. Thanks for any help that can be offerred. Cliff Behrens __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

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

2008-12-16 Thread Cliff Behrens
(dataList)- nameList ## The NA is interpreted that the name is missing for one list in dataList If you inspect the contents of dataList, you will find the following showing that the name NA is treated differently: .. $Na NULL $`NA` NULL $Nb NULL . Peter Dalgaard wrote: Cliff

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); names(l) - NA do to you

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

2008-12-16 Thread Cliff Behrens
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 3rd party package

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 bring

[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