[R] Problems with Cosine Similarity using library(lsa)
tad.dallas at drakeresearchlab.com
Thu Feb 23 21:14:43 CET 2012
The as.matrix (and as.table or as. vector or as.numeric ...) command takes
the object that you wish to convert as an argument. So the code below will
actually perform the conversion from table to matrix.
> newmatrix<- as.matrix(matrix_v3)
A way to see what form your data are taking is to use the command
typeof(object). In this case, you can write
Easy fix (hopefully)
View this message in context: http://r.789695.n4.nabble.com/Problems-with-Cosine-Similarity-using-library-lsa-tp4413433p4415114.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help