search for: proportionsmatrix

Displaying 1 result from an estimated 1 matches for "proportionsmatrix".

2013 Feb 05
1
Remove and add to many matrices in list.
...atrix: Delete Duplicate 0.99 0.43 0.34 0.32 0.54 0.56 ….. And so on. So for each matrix in the list of matrices, I want to: * Calculate the number of columns to be deleted or duplicated: something like * number.to.delete <- ncol(matrix list[[I]])*proportionsmatrix[I,1] * number.to.duplicate <- ncol(matrix list[[I]])*proportionsmatrix[I,2] * Then I want to sample the columns to be deleted, and those to be copied : something like: * which.delete <- sample(ncol(matrix[[I]], number.to.delete, replace=F) * which.duplicate <- samp...