# R distance one against all

Budget €30-250 EUR

- Freelancer
- Jobs
- C Programming
- R distance one against all

I have preprocessed a list of text documents using tm. Then I have created the DTM. Then I have transformed the DTM in a matrix like this:

t1 t2 t3 t4 t5 t6

A 0 0 1 5 3 1

B 1 3 5 3 2 2

C 3 0 6 0 0 0

D 1 2 0 0 0 0

where t1, t2, t3, t4, t5, t6 are words, A,B,C,D are the documents and the numbers inside the matrix are the frequecies of each word in each document.

I have then used the dist function of proxy package to calculate the Manhattan distance between the items A,B,C,D of the matrix.

This function compare and returns the distances between all the items A,B,C,D (all combinations).

Is there a way to calculate the distance (Manhattan, Euclidean) between only one specific item and all other? For example the distance between A and all other documents (B, C and D) without calculating the distances between all other documents?

I'm requiring an example code with the explanation of each passage.

Thank you.

## 14 freelancers are bidding on average €139 for this job

Hello, I have the good knowledge of R distance one against all. I have more than 5 years of experience in C Programming, C# Programming, C++ Programming, Mathematics, R Programming Language. We have worked on severa More

Dear sir. Your project attracted my attention at first glance, because I've really rich experience in R Programming. I'm really confident about your project, and very eager to join your project. If we have a chance More

I am a full-time freelancer looking for a long term business alliance I have a 5 rated profile in Upwork too. If you are looking for top notch work then hire me. Can assure high quality work is delivered to your satis More

Dear Sir, I am an experienced statistician specialized in R programming. i understand that you want to change the function you are using to calculate distances betweent documents based on words frequencies. you are More

Hello sir. I'm excited about your project, because I've really rich experience in R Programming. I've developed many projects similar to yours and excellent skills. If you award me, I'll provide wonderful result on More

Hello, I read your project description and interested to do it. I am very responsible about work. Please send me a message so that we can discuss more on chat.

Dear What is challenge in computing distance between any document A and all documents in your corpus. It is similar to computing a Matrix and Vector product. For example if your DTM is represented as a matrix D given More

I have a good team here to work on any kind of services in software development. Please trust us and give a project to our team. We deliver on time with good quality.

Hi, I can help you with this at a very lower price. I believe you needed help only with calculating distance from one document to the rest without calculating the distance between all documents. As this is only one ste More