[R] read attribute

Peter Dalgaard p.dalgaard at biostat.ku.dk
Tue Dec 14 00:23:08 CET 2004


Omar Lakkis <abu3ammar at gmail.com> writes:

> > unclass(ts1)
> list()
....
> attr(,"positions")
> [1] "2003-10-09 02:00:00" "2003-10-10 02:00:00" "2003-10-13 02:00:00"
> [4] "2003-10-14 02:00:00"
..........
> 
> How can I get teh value of the attribute positions?

The output is providing a rather strong hint: attr(ts1, "positions")

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list