[R] Extracting column name in apply/lapply

2006-08-28 Thread Nick Desilsky
Hi, any good trick to get the column names for title() aside from running lapply on the column indexes? Thanks Nick. apply(X[,numCols],2,function(x){ nunqs - length(unique(x)) nnans - sum(is.na(x)) info - paste(uniques:,nunqs,(,nunqs/n,),NAs:,nnans,(,nnans/n,))

[R] bwplot in loop doesn't produce any output

2006-08-16 Thread Nick Desilsky
Hi, running the following code by itself runs as expected. k - 1 i - 2 j - 3 NumName - varnames[num.cols[k]] FacNames - varnames[fac.cols[c(i,j)]] tmp - paste(FacNames[1],NumName,sep=~) fml -