Re: [R] Times and Dates

2014-04-01 Thread Duncan Murdoch
On 01/04/2014 12:33 PM, Doran, Harold wrote: Is the time and date package the right one to convert a vector, such as the following, into a time format? "12:06" "11:51" "11:53" "12:27" "14:20" "12:27" The aim is to deal with a time variable numerically (find means, etc). I don't know which pa

[R] Times and Dates

2014-04-01 Thread Doran, Harold
Is the time and date package the right one to convert a vector, such as the following, into a time format? "12:06" "11:51" "11:53" "12:27" "14:20" "12:27" The aim is to deal with a time variable numerically (find means, etc). Thanks Harold [[alternative HTML version deleted]] ___

[R] times-series HLM in R

2012-11-07 Thread Nita Umashankar
Hello, If you have any advice on how to code a time-series HLM model in R? The code I have right now is: glmer(sale ~ agent_techmc*CultDistmc + ismc*CultDistmc + contactsmc*CultDistmc + pfmc + warranty + engineering_diff_res + Cust_internet + Cust_mobility_mobile + durationmc + (1| JOURNALTE

[R] Times Series Data using GLS

2012-07-10 Thread MRB305
I am trying to use regression to determine the interaction between a couple of variables while correcting for autocorrelation. Thus far, I have created the code: model <- gls(yvar~xvar1*xvar2, correlation = corARMA (p=2), method = "ML", data = data) I'm having a difficult time understanding the di

Re: [R] times series trellis plot

2012-03-07 Thread sluedtke
That was exactly the line I was looking for!! Perfect and thanks for your time! On Tue, 2012-03-06 at 16:23 -0800, Gabor Grothendieck [via R] wrote: > panel.xblocks(time(ts2), is.na(ts2[, panel.number()]), ..., col="RED") -- View this message in context: http://r.789695.n4.nabble.com/times-ser

Re: [R] times series trellis plot

2012-03-06 Thread Gabor Grothendieck
On Tue, Mar 6, 2012 at 11:14 AM, Stefan Luedtke wrote: > I spent some more time to understand the examples .. it helped a bit. > > But there is still one issue. > > Taking example data (my first on, hope it is not confusing ;-)  ) like: > > > library(latticeExtra) > library(zoo) > > > #  example D

Re: [R] times series trellis plot

2012-03-06 Thread Stefan Luedtke
I spent some more time to understand the examples .. it helped a bit. But there is still one issue. Taking example data (my first on, hope it is not confusing ;-) ) like: library(latticeExtra) library(zoo) # example Data timeVect1=seq(as.Date("1990-01-01"), as.Date("2010-12-31"), by="day"

Re: [R] times series trellis plot

2012-03-06 Thread R. Michael Weylandt
Type at your console: library(lattice) example(xyplot.zoo) I think the second and third do what you were asking. Otherwise, please describe in more detail what you mean about "add other variables to each panel" -- how do you want these displayed and what sort of variables are they? On Tue, Mar 6

Re: [R] times series trellis plot

2012-03-06 Thread Gabor Grothendieck
On Tue, Mar 6, 2012 at 4:20 AM, Stefan Luedtke wrote: > I managed to solve a part of my problem. Anyway, I still do not > understand how to use the lattice package the right way. > > An example: > > I do have multiple stations (say, with climatological data) and I want > to plot each station on it

Re: [R] times series trellis plot

2012-03-06 Thread Stefan Luedtke
Dear List, I managed to solve a part of my problem. Anyway, I still do not understand how to use the lattice package the right way. An example: I do have multiple stations (say, with climatological data) and I want to plot each station on its on panel. I managed to do this of course with one

Re: [R] times series trellis plot

2012-03-04 Thread Stefan Luedtke
Thanks, a lot!! On Fri, 2012-03-02 at 18:00 -0500, Gabor Grothendieck wrote: > On Fri, Mar 2, 2012 at 5:15 PM, sluedtke wrote: > > Dear List, > > > > I am struggling with the trellis graphic. A similar problem was mentioned > > here: > > > > http://r.789695.n4.nabble.com/R-How-can-you-get-N-rep

Re: [R] times series trellis plot

2012-03-02 Thread Gabor Grothendieck
On Fri, Mar 2, 2012 at 5:15 PM, sluedtke wrote: > Dear List, > > I am struggling with the trellis graphic. A similar problem was mentioned > here: > > http://r.789695.n4.nabble.com/R-How-can-you-get-N-replicates-of-a-multi-screen-multivariate-time-series-plot-td811850.html > > > I do have 2 time s

[R] times series trellis plot

2012-03-02 Thread sluedtke
Dear List, I am struggling with the trellis graphic. A similar problem was mentioned here: http://r.789695.n4.nabble.com/R-How-can-you-get-N-replicates-of-a-multi-screen-multivariate-time-series-plot-td811850.html I do have 2 time series data sets. The 2 time series differ in some orders of ma

Re: [R] times

2010-10-28 Thread Gabor Grothendieck
On Thu, Oct 28, 2010 at 1:06 AM, thoeb wrote: > > Hi! I have an input table with a column "Dates" in the format > "month/day/year" (eg. "5/11/1999" and a column "Times" in the format > "hours/minutes" (eg. "15:20"). In R I need to convert them into chron > objects to extract colums only containing

Re: [R] times

2010-10-28 Thread Thomas Levine
I couldn't figure that out, but you can work around it by adding the seconds chron(dates=lwc.file[,1],times=paste(lwc.file[,2],':00',sep='')) Tom 2010/10/28 thoeb : > > Hi! I have an input table with a column "Dates" in the format > "month/day/year" (eg. "5/11/1999" and a column "Times" in the f

[R] times

2010-10-27 Thread thoeb
Hi! I have an input table with a column "Dates" in the format "month/day/year" (eg. "5/11/1999" and a column "Times" in the format "hours/minutes" (eg. "15:20"). In R I need to convert them into chron objects to extract colums only containing months, days, minutes, .. For the dates it is no probl

Re: [R] Times series data file?

2010-06-14 Thread David Winsemius
On Jun 14, 2010, at 4:45 PM, Douglas M. Hultstrand wrote: Hello, I currently splitting a file into individual files (time series each separated into one file), the file I read in skips the first four lines and extracts the data columns I need. I was wondering if there is a way for R to

[R] Times series data file?

2010-06-14 Thread Douglas M. Hultstrand
Hello, I currently splitting a file into individual files (time series each separated into one file), the file I read in skips the first four lines and extracts the data columns I need. I was wondering if there is a way for R to automatically scan and separate the files based on the head inf

Re: [R] R times series

2010-03-03 Thread Achim Zeileis
On Tue, 2 Mar 2010, Beaudelaire TAFOUEDA wrote: Hello ! Please let me ask how can somebody manipulate de (G)ARCH times series processus in R. Tank ! See the GARCH section in: http://CRAN.R-project.org/view=TimeSeries hth, Z -- View this message in context: http://n4.nabble.com/R-times

[R] R times series

2010-03-03 Thread Beaudelaire TAFOUEDA
Hello ! Please let me ask how can somebody manipulate de (G)ARCH times series processus in R. Tank ! -- View this message in context: http://n4.nabble.com/R-times-series-tp1576119p1576119.html Sent from the R help mailing list archive at Nabble.com

Re: [R] Times series adjustment

2009-07-13 Thread Gabor Grothendieck
Try this: # First read in the data using chron "times" class Lines.Bary <- "XY Date Time Depth -2.620748 48.75121 01/00/00 12:07:16.000 -25.6 -2.620714 48.75121 01/00/00 12:07:17.000 -25.8 -2.620698 48.75121 01/00/00 12:07:17.000 -26.0 -2.620682 48.

[R] Times series adjustment

2009-07-13 Thread Poizot Emmanuel
Dear all, I want make correction depth of a bathymetric data set. To do so, I have the depth data set sample every second (a depth at each second) in one hand, and in the other hand, I have a tide variation level data set sample every 250 ms. The time register in each data sets (tide and bathy

Re: [R] times family unavailable in postscript device (Ubuntu Linux)

2009-05-12 Thread Paul Murrell
Hi This happens because of the way PostScript files are generated, with all metadata in the head of the file, including font information. So you need to "predeclare" any fonts that you are going to use in a PostScript file. In this case, something like ... postscript(fonts="Times") ... or if "

[R] times family unavailable in postscript device (Ubuntu Linux)

2009-05-11 Thread Paul Johnson
I'm running Ubuntu 9.04. I could use some advice about fonts in postscript devices. > sessionInfo() R version 2.9.0 (2009-04-17) i486-pc-linux-gnu locale: LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NA