Re: [R] Attributing values to matrix according to names

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Fri 21 Oct 2005 - 00:29:10 EST

"Schneider, Manuel" <Manuel.Schneider@eawag.ch> writes:

> > data["10014",1,1]<-count["10014"]
> works but
>
> > data["names(count)",1,1]<-count["names(count)"]
> Fails with Error: indexing outside limits.

Well, you don't have a row named "names(count)" now do you? Try dropping the quotes.

-- 
   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
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 Fri Oct 21 01:03:44 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 19:12:08 EST