Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.SOC.4.64.1301031045180.3782@solcom.hrz.uni-giessen.de>
Date: 2013-01-03T09:49:50Z
From: Gerrit Eichner
Subject: Make a column from columns
In-Reply-To: <CAPB42Uwp-UXZswMuo-+-9q76RB_W1Hp6QUDDngMNR6U0bR+aQw@mail.gmail.com>

Hi, Aseem,

you may want to look at

?stack

or

?reshape

(and transform your matrix into a data frame).

   Hth  --  Gerrit

On Wed, 2 Jan 2013, Aseem Sharma wrote:

> Hi,
> I have a data matrix with 13 columns and 55 rows.  First coulmn is year and
> other are monthly values for 55 years.
> Now i want to create a single column of all the values ( i e  a single time
> series column from column 2 to 13 ).
> Is it the for loop that works here ...how ?
> or how i can rearrange the data so that it becomes a times series column.
> hope i made the question clear .
> thank you,
>
>
> ------------------
>
> "Namaste ??????????????????"
>
> Aseem Sharma
>
> Graduate Research Assistant
>
> Northern Hydrometeorology Group(NHG)
>
> Natural Resources and Environmental Studies Institute(NRESi)
>
> University of Northern British Columbia
>
> Prince George, BC, V2N 4Z9, Canada
>
> Tel: 250-960-5427
>
> Web: http://www.unbc.ca/
>
>
> "All know the Way, but few actually walk it."
> "??????????????? ?????????????????? ???????????? ???"
>
> 	[[alternative HTML version deleted]]