in reply to Re: Tallying appearance of a unique string from hash keys
in thread Tallying appearance of a unique string from hash keys

Thank you very much! Let me just make sure it's doing what I want it to (being such a large dataset I can't confirm the output manually). The degree is the number of times each ID appears. The frequency is the number of times that degree appears in the dataset. I have another aspect to this I was wondering if you guys could help me out with. I have to create three random networks with the same number of IDs and interactions (but since they are random, the actual interactions will be different). And do the same degree and frequency calculations (to compare to this network) -- A subroutine would be most useful. Lastly, I need to export this all to an excel file using the Spreadsheet::WriteExcel module (with headers of the separate columns being the degrees (data in ascending order) and the corresponding degree frequencies for the given network and each of the three randomized networks). Thank you in advance to anyone that can help!
  • Comment on Re^2: Tallying appearance of a unique string from hash keys

Replies are listed 'Best First'.
Re^3: Tallying appearance of a unique string from hash keys
by tilly (Archbishop) on Mar 26, 2009 at 07:40 UTC
    That is exactly what that snippet of code does.

    As for the rest of it, nuh uh, that isn't how it works. This is a place for people to learn about programming, not a place for people to get their projects done by others. If I think that I can give you a little help and you can try the rest, I may donate a little effort. If you want to demand a detailed spec and show no evidence of putting any of your own effort in, that sounds like real work. I'm perfectly willing to discuss my hourly rate with you, but I won't contribute anything more for free.

      Sorry guys, Thank you for the help. If I get stuck along the way I'll ask for some pointers.
Re^3: Tallying appearance of a unique string from hash keys
by planetscape (Chancellor) on Mar 26, 2009 at 07:28 UTC

    PerlMonks is not a code-writing service. You must at least make some minimal effort on your own. Start by trying to write your own subroutine; if you get stuck, feel free to come back and ask more specific questions, and show your code!

    HTH,

    planetscape
      Hello, I'm not sure how exactly to create a three random networks of these IDs. If I reorder either $1 or $2, I would accomplish this, then simply use the code above to determine the degrees and frequencies of this new network. What functions would allow me to change the order of the ID pairs in the keys of this hash, or change the order of $1 and/or $2 and place them into a new hash? Any help would be appreciated!