Re: [R] Row-wise data retrieval

From: Vasundhara Akkineni <vasu.akkineni_at_gmail.com>
Date: Thu 01 Dec 2005 - 01:07:44 EST

Thanks, Henrik.

Vasu.

On 11/29/05, Henrik Bengtsson <hb@maths.lth.se> wrote:
>
> Vasundhara Akkineni wrote:
> > I want to retrieve data row wise from a data frame. My data frame is as
> > below:
> >
> > data<-read.table("table.txt", header=TRUE)
> >
> > how can i get row-wise data?
>
> Examples:
>
> data[1,]
> data[2,]
>
> for (rr in 1:nrow(data))
> data[rr,]
>
> rows <- c(1, 5:8, 3)
> data[rows,]
>
> /Henrik
>
> > how can i get row-wise data?
> >
> > Thanks,
> > Vasu.
> >
> > [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help@stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
> >
> >
>
>

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Dec 01 02:01:01 2005

This archive was generated by hypermail 2.1.8 : Thu 01 Dec 2005 - 02:33:30 EST