Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7928729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:49:46+00:00 2026-06-03T19:49:46+00:00

I am not an expert on R or really good at statistic so I

  • 0

I am not an expert on R or really good at statistic so I will be brief.

I am using R to get the Distance Matrix of a matrix shown below the way it appears on R.

enter image description here

When I apply dist(matrix) I see the following:

          1         2         3         4         5         6
2 16.155494                                                  
3  5.830952 15.329710                                        
4  2.236068 18.055470  6.244998                              
5  7.681146 13.928388  9.110434  8.124038                    
6  8.306624 11.489125  9.110434  9.273618  2.449490          
7 11.090537 10.392305 12.124356 12.247449  5.099020  3.464102

So my questions are three, first, is that result ok?, second, why the calculation has less rows than we had before?, and finally why There are more Columns than at the beginning?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T19:49:48+00:00Added an answer on June 3, 2026 at 7:49 pm

    I get the same result. (Whether this is ‘correct’ might depend on your goals. Your last question suggests to me that you do not understand that these are distances between the rows.) The length of the object returned is always the number of columns in combn(n,2) and combn(7,2))==21 in this case, where n= number of rows. It is displayed as a lower triangular matrix of dimension (n-1)x(n-1). There is no row #1 simply because the distance from a row to itself is zero and printing it would not be useful. There will also be n-1 columns where n is the number of rows, regardless of the number of original columns. The number of columns only determines the dimension of the space in which the distances are being calculated.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am not AXIS2 expert, therefore I am using Eclipse to generate bottom -
I'm not expert in CSS in any way; I know it to some extent
Not a really mysql expert =( , I need more pair of eyes to
I'm not really a Python expert nor am I a Postgres expert, but here
I'm not expert about css menus. But I know basic system to make css
I am not expert in ASP so i would be appreciated for the help.
If not an expert programer I am at least familiar with the basic steps
I'm not very expert with Perl, so I preferred to ask you. I have
I am not an expert in Git, but I have seen this done before
I'm not very expert on how processors work, but one might imagine that it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.