
THANKS a lot Tad! 

It is just what I needed to calculate cosine similarities on my matrix.

Best,

AJ


> Date: Thu, 23 Feb 2012 12:14:43 -0800
> From: tad.dallas@drakeresearchlab.com
> To: r-help@r-project.org
> Subject: Re: [R] Problems with Cosine Similarity using library(lsa)
> 
> 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 
> 
> >typeof(matrix_v3)
> 
>  Easy fix (hopefully)
> 
> Tad
> 
> --
> 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.
> 
> ______________________________________________
> 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.
 		 	   		  
	[[alternative HTML version deleted]]

