[R] extractor rows from a matrix

John Kane jrkrideau at yahoo.ca
Thu Jun 14 11:53:50 CEST 2007


I think I understand what you want.  Try

htt < data.frame(ht)
unlist (htt)


--- billycorg <billycorg1 at virgilio.it> wrote:

> 
> thanks for the answer..but i don't find what i'm
> looking for!
> 
> now i'm trying to expose better my problem:
> i have:
> 
> ht= a 1096rows x 3 columns matrix 
>  
> i'd like a function like this:
>  
> d[i]=rbind(ht[i,]) for (i in 1:length(ht))
> 
> but this don't work :(
> can anyone seriously help  me?
> -- 
> View this message in context:
>
http://www.nabble.com/extractor-rows-from-a-matrix-tf3913088.html#a11114923
> Sent from the R help mailing list archive at
> Nabble.com.
> 
> ______________________________________________
> R-help at 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
> and provide commented, minimal, self-contained,
> reproducible code.
>



More information about the R-help mailing list