[R] lsa-cosine subscript out of bounds error

Mark Sharp msharp at txbiomed.org
Fri Oct 28 15:03:37 CEST 2016


Anusha,

You have written to r-help multiple times and are still using HTML and failing to provide a reproducible example of your problem. Please read and comply with the posting guide.

Mark
R. Mark Sharp, Ph.D.
msharp at TxBiomed.org





> On Oct 28, 2016, at 7:07 AM, Indhira, Anusha <Anusha.Indhira at controlsdata.com> wrote:
>
> Hi,
>
> I have created a document term matrix from corpus.I would like to apply Cosine similarity to find similar documents,when I apply cosine(w.mt) I get " Error in x[,i] : Subscript out of bounds"
> Can anyone let me know how to overcome this error?
>
> Thanks,
> alily
> This e-mail (including attachments) contains contents owned by Rolls-Royce plc and its subsidiaries, affiliated companies or customers and covered by the laws of England and Wales, Brazil, US, or Canada (federal, state or provincial). The information is intended to be confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, interception or copying of this communication is strictly prohibited and may subject you to further legal action. Reply to the sender if you received this email by accident, and then delete the email and any attachments.
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

CONFIDENTIALITY NOTICE: This e-mail and any files and/or...{{dropped:10}}



More information about the R-help mailing list