[R] Help implementing a simple Python port

2009-06-16 Thread Nathan Torrance
Hello list, I wonder if anyone might be able to help me troubleshoot an attempt at porting some simple Python code to R. The function below is supposed to take a matrix containing item ratings from various users and, given a vector containing at least 1 rating and 1 missing value, employ a

[R] Output a table formatted with standard deviations below means

2011-03-19 Thread Nathan Torrance
Is it in bad form to double post to StackOverflow and R-help? Apologies if so. Here's my task: I've got a matrix of means like so means-matrix(1:10,nrow=2) colnames(means)-c(a,b,c,d,e) and a matrix of standard deviations like so sds-matrix(seq(0.1,1,by=0.1),nrow=2) colnames(sds)-c(a,b,c,d,e)