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 th

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

2008-12-16 Thread Ben Bolker
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 things one step closer to "minimal, reproducible". If you can identify the problem as specifically involving the package, then it

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

2008-12-16 Thread Cliff Behrens
Sorry...I didn't realize that there were such distinct lines drawn around core vs contributed packages. I merely thought that r-help put those with questions in touch with others who might have used or authored a package and experienced the same problem. I didn't intend to make more work for

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

2008-12-16 Thread Peter Dalgaard
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 is not kosher either... Whatever did list("NA"=2) or l <- list(2); na

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 y

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

2008-12-16 Thread Peter Dalgaard
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? columnNames <- c("A","B","C","D","N","a","b","c") namePerms<- permutat

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

2008-12-16 Thread Cliff Behrens
Peter, OK...here is reproducible, self-contained code: library(gregmisc) columnNames <- c("A","B","C","D","N","a","b","c") namePerms<- permutations(length(columnNames),2,columnNames,repeats=TRUE) nameList <- paste(namePerms[,1],namePerms[,2],sep="") dataList <- lapply(1:length(nameList), functio

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

2008-12-16 Thread Dr Eberhard W Lisse
Quite irritating to me as the Manager of .NA too, when I used NA for .NA :-)-O el Peter Dalgaard wrote: > Cliff Behrens wrote: >> One of these permutations >> is the character string "NA". It seems that when I try to name one of >> the dataList levels "NA", using names(dataList)<- nameList, the

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

2008-12-16 Thread Peter Dalgaard
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, which contains all possible permutations of size two taking letters from a larger alphabet, e.g., "aa",...,"Fd",..,"Z1",... One of these permutatio

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

2008-12-16 Thread Cliff Behrens
I want to generate a list (called "dataList" below) where each of its levels is named. These names are assigned to nameList, which contains all possible permutations of size two taking letters from a larger alphabet, e.g., "aa",...,"Fd",..,"Z1",... One of these permutations is the character s