[R] Time series

Pascal Oettli kridox at ymail.com
Wed Apr 2 08:26:49 CEST 2014


Hello Keith,

Your example is clearly not reproducible and wrong (Chum and chum).
Please use dput() to attach sample dataset.
At first glance, you work with hourly data. Package such as "xts"
might be more useful.

Regards,
Pascal

On Wed, Apr 2, 2014 at 3:16 PM, Marlin Keith Cox <marlinkcox at gmail.com> wrote:
> A simplified ask is:  when I use the time series plot function, R treats
> each time on 9/19/13 as an individual day, when clearly it isn't.
>
> Thank you ahead of time.  Keith
>
> ts(chum)
> with(chum,plot.ts(Time,PA))
>
> Chum<-
>
>   Time PA  9/18/13 18:29 16  9/19/13 13:29 14  9/19/13 16:29 13.2  9/19/13
> 17:29 13.1  9/19/13 18:29 13  9/20/13 18:29 12  9/21/13 18:29 10  9/22/13
> 18:29 9  9/23/13 18:29 7  9/24/13 18:29 5  9/25/13 18:29 3  9/26/13
> 18:29 2  9/27/13
> 18:29 1
>
>
> M. Keith Cox, Ph.D.
> Principal
> MKConsulting
> 17105 Glacier Hwy
> Juneau, AK 99801
> U.S. 907.957.4606
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org 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.



-- 
Pascal Oettli
Project Scientist
JAMSTEC
Yokohama, Japan




More information about the R-help mailing list