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.dal...@drakeresearchlab.com
> To: r-help@r-project.org
> Subject: Re: [R] Problems with Cosine Similarity using library(l
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
s needed as input.
After that, I tried to convert "matrix_v3" using > cosine(matrix_v3, y = NULL)
but it was not possible.
That's all. I hope this is enough. Thanks and sorry for inconvenience.
AJ
> Date: Thu, 23 Feb 2012 13:15:16 +0100
> From: lig...@statistik.tu-d
de http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Thanks again.
Date: Thu, 23 Feb 2012 11:35:04 +0100
From: lig...@statistik.tu-dortmund.de
To: anxu...@hotmail.com
CC: r-help@r-project.org
Subject: Re: [R] Problems with Cosine S
> CC: r-help@r-project.org
> Subject: Re: [R] Problems with Cosine Similarity using library(lsa)
>
> The error message suggests that you do not have Java installed. And
> since you said it works in 32-bit: You only have a 32-bit Java but no
> 64-bit Java installed in your machine.
>
The error message suggests that you do not have Java installed. And
since you said it works in 32-bit: You only have a 32-bit Java but no
64-bit Java installed in your machine.
Uwe Ligges
On 23.02.2012 11:08, A J wrote:
Hi everybody!
I have intended to use library(lsa) on R 64-bits for Win
Hi everybody!
I have intended to use library(lsa) on R 64-bits for Windows but it was not
possible. Every time I try to launch library(lsa) function R give me back next
message:
Loading required package: SnowballError : .onLoad failed in loadNamespace() for
'Snowball', details: call: NULL e
7 matches
Mail list logo