Dear R members
I have a problem regarding storing the lists.
Let 
L=number of distinct values of any predictor (say L=5)
P=number of predictors (say P=20)

g1 <- c()
for(i in 1:P){
if(L > 1){
  for(j in 1:(L-1)){
g <- ....
g1[j] <- g
                       }
            }
g2[]=sort.list(g1)
                }

Now the question is: What should we use inside brackets of g2[....], whether 
"i" or some thing else? If L is not greater than 1 then there will be a "NULL" 
for g2. We don't want to store it in g2, so how can we handle this problem. 
Looking forward for some help. Thanks and 

 
best regards

Muhammad Azam 



      
        [[alternative HTML version deleted]]

______________________________________________
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/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to