[R] Matrix nesting (was Re: Obtaining summary of frequencies of value occurrences for a variable in a multivariate dataset.)

2007-07-30 Thread Allan Kamau
Hi !-- @page { size: 21cm 29.7cm; margin: 2cm } P { margin-bottom: 0.21cm } -- I would like to nest matrices, is there a way of doing so, I am getting “number of items to replace is not

Re: [R] Matrix nesting (was Re: Obtaining summary of frequencies of value occurrences for a variable in a multivariate dataset.)

2007-07-30 Thread Allan Kamau
Success, thanks Patrick. Below is the final matrix construction code. x=list() x[length(myVariableNames)]-NA names(x)-names(x.val) for (i in myVariableNames){ residues=names(x.val[[i]]) residuesFrequencies=as.vector(x.val[[i]]) someList=list() names(residuesFrequencies)=residues