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

  • Home
  • SEARCH
  • 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 8105479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:10:29+00:00 2026-06-06T00:10:29+00:00

I have an external distance object ( gdis ) and need to convert it

  • 0

I have an external distance object (gdis) and need to convert it to a matrix which contains both halves of the distance matrix. I am currently using the print function to achieve this. It is rather clunky having to print out the entire matrix each time a run the script. Is there any way to avoid this?

wgdis<-print(gdis, upper=TRUE)
  • 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-06T00:10:30+00:00Added an answer on June 6, 2026 at 12:10 am
    m <- matrix(rpois(50,5), nrow=5)
    m2 <- dist(m)
    attr(m2, "Upper") <- TRUE
    m2
              1         2         3         4         5
    1           12.083046 11.135529 11.958261 12.529964
    2 12.083046            6.928203 10.148892  8.062258
    3 11.135529  6.928203            8.660254  9.643651
    4 11.958261 10.148892  8.660254           14.491377
    5 12.529964  8.062258  9.643651 14.491377   
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have external html5 canvas that you can paint on some lines using your
I have an external js file that is basically a js object. I am
I have a one-page website with sliding panels, some of which have external links.
I have external script result in my XSL template, contains escaped html special characters.
I have an external compiled project(asp.net) that we are using in our code. I
I have an external script which I'm linking to, and it calculates a <div>
We have an external service that is currently accessible via the http (port 80,
Hi I have the need to calculate the distance between two points having the
I have external CSS in my project and it contains all the styles for
I would like to have external proofreaders to work directly inside my Drupal site.

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.