Displaying 1 result from an estimated 1 matches for "nameperms".
2008 Dec 16
2
Problem assigning "NA" as a level name in a list
...when I try to name one of the
dataList levels "NA", using names(dataList)<- nameList, the names()
function assigns the missing character to the level. Is there someway
to preserve "NA" as the name of a level in dataList? Here is the R code
I have been using to do this.
namePerms<- permutations(ncol(coinMat),2,colnames(coinMat),repeats=TRUE)
nameList <- paste(namePerms[,1],namePerms[,2],sep="")
dataList <- lapply(1:length(nameList), function(level) {})
names(dataList)<- nameList ## The "NA" in nameList is interpreted
so that the name &q...