I’m Sent from my iPhone > On Oct 2, 2024, at 7:43 AM, roslinazairimah zakaria <roslina...@gmail.com> > wrote: > > Hi Enrico, yes it works. I can also plot the graph. > Next question, how do I delete the date from 16 December until 31 December > 2014? > > > Thank you very much. > >> dt$time <- as.POSIXct(dt$time)> > dt_ts <- xts(dt$count, dt$time)> >> str(dt_ts)An xts object on 2014-01-01 / 2014-12-31 23:59:00 containing: > Data: integer [525600, 1] > Index: POSIXct,POSIXt [525600] (TZ: "") > > > plot(dt_ts)
I believe that xts objects store that sort of information in their attributes. Look at the results of attr(dt_ts) In the future you should not ask unrelated questions without changing the subject line to reflect the new topic area. And you should stop posting in HTML. — David > -- > *Roslinazairimah Zakaria* > *Tel: +609-5492370; Fax. No.+609-5492766* > > *Email: roslinazairi...@ump.edu.my <roslinazairi...@ump.edu.my>; > roslina...@gmail.com <roslina...@gmail.com>* > Faculty of Industrial Sciences & Technology > University Malaysia Pahang > Lebuhraya Tun Razak, 26300 Gambang, Pahang, Malaysia > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide https://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.