[R] Class noquote to matrix
Mark Ebbert
Mark.Ebbert at hci.utah.edu
Wed Mar 30 04:12:37 CEST 2011
Hi,
I apologize if the solution is right in front of me, but I can't find anything on how to convert a class of 'noquote' to 'matrix'. I've tried as.matrix and I've tried coercing it by 'class(x)<-matrix', but of course that didn't work. I've been using the function 'symnum' which returns an object of class 'noquote'.
Here is an example from the 'symnum' help page:
pval <- rev(sort(c(outer(1:6, 10^-(1:3)))))
symp <- symnum(pval, corr=FALSE,
cutpoints = c(0, .001,.01,.05, .1, 1),
symbols = c("***","**","*","."," "))
Thanks!
More information about the R-help
mailing list