[R] Categorizing Lines

John Kane
Tue, 11 Aug 2009 19:22:52 -0000

Do you just want to assign an identifier to each line, that is call the first 33
lines are speciman A the next are speciman b etc?

Assuming the data set is in a data.frame called xx try something like this

group <- rep(1:33, each=79)
data.frame (group,xx)

John

--- On Tue, 8/11/09, Fabio Murtas <fabio.murtas at gmail.com> wrote:

> From: Fabio Murtas <fabio.murtas at gmail.com>
> Subject: [R] Categorizing Lines
> To: "r-help at r-project.org" <r-help at r-project.org>
> Received: Tuesday, August 11, 2009, 2:48 PM
>
> Hi all, i have a dataset of 3D coordinates and can't figure
> out how to' tell R which One Are the individuals:
>
> I have 3 columns which i named x,y and z
> And then i have 2607 Lines, but each specimen is 33 Lines
> (79 specimens)
>
> How can i tell R to' categorize individuals every 33
> Lines?



      __________________________________________________________________
[[elided Yahoo spam]]