I'm using the rcorr function from the Hmisc library to get pair-wise correlations from a set of observations for a set of attributes. This returns 3 matrices; one of correlations, one of the number of observations seen for each pair and the final of the P values for each correlation seen.
>From these three matrices, all I wish to do is return a single matrix based on the first correlation matrix where each value is above a certain correlation, has a certain number of instances and has a P-value below some other threshold. My question is what is the nicest way of writing this sort of code? Thanks Ben -- View this message in context: http://www.nabble.com/Filtering-matrices-tp25145451p25145451.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.