public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Gokhan Kisacikoglu <kisa@centropolisfx.com>
To: AS225 <sewashm@yahoo.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Transpose/merge
Date: Mon, 28 Oct 2002 09:39:00 -0000	[thread overview]
Message-ID: <3DBD7727.148F1708@centropolisfx.com> (raw)
In-Reply-To: <20021027185017.11389.qmail@web40405.mail.yahoo.com>

STOP POSTING YOUR HOMEWORK ASSIGNMENTS HERE!!!

AS225 wrote:
> 
> Hi all,
> 
> I am not that much skilled in C/C++ programming, but I
> am eager to learn more about it.
> 
> I have a problem to manipulate the following data set.
> I hope that I may get a help from you guys!
> 
> I am looking for an algorithm that  transpose(merge) a
> data set by a variable. The data set is a two
> dimensional x(m,n). If the the value of the first
> column is equal to the value of the previous row (m,1
> =m-1,1)  then  merge the variables of ( m, 2-n) to the
> first row.
> 
> May be an example of a data set explain in a better
> way.
> 
> obs   v1 v2 v3
>  1    11 12 13
>  1    21 22 23
>  2    22 23 24
>  3    44 45 46
>  3    55 54 56
>  3    66 65 66
> 
> The transposed(merged) data file would look like
> 
> 1    11 12 13 21 22 23
> 2    22 23 24
> 3    44 45 46 55 54 56 66 65 66
> 
> Any help is highly appreciated in advance
> Ashe
>

      reply	other threads:[~2002-10-28 17:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-27 10:50 Transpose/merge AS225
2002-10-28  9:39 ` Gokhan Kisacikoglu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DBD7727.148F1708@centropolisfx.com \
    --to=kisa@centropolisfx.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=sewashm@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).