[R] AutoRegression with Subset of Lags/Coefficients

2012-02-01 Thread David Esp
[ar] model from a [FitARp] model? I imagine that should be possibe in principle, it should be just a case of some coefficients being zero. Any help/advice would be appreciated. David Esp, UK. [[alternative HTML version deleted]] __ R-help@r

[R] Roxygen - basic usage uncertain

2010-04-14 Thread David Esp
I am trying to make a package consisting of a single function with auto-documentation assistance from 'roxygen' but am uncertain of the correct procedure. My version of 'R' is 2.10.1. I followed the following steps: 1) Get an existing function (un-commented) as an '.R' file. 2) Add formal comm

Re: [R] Date-Time-Stamp input method for user-specific formats

2009-10-06 Thread esp
Another solution, as a fix to my original algorithm, was found by a colleague (Matthew Roberts). While he claims not too much for its elegance, it does seem to work. This fix is based on the use of the 'pmax' function. This function is a variant of the 'max' (maximum) function to return a vecto

Re: [R] Date-Time-Stamp input method for user-specific formats

2009-10-06 Thread esp
esp wrote: > > For the function as defined above using 'sapply' >> spot[,1] > 01/09/2009 01/09/2009 00:00:01 01/09/2009 00:00:02 01/09/2009 > 00:00:03 > 1251759600 1251759601 1251759602 > 1251759603 > >

Re: [R] Date-Time-Stamp input method for user-specific formats

2009-10-06 Thread esp
Thank you all who replied, I will try out these ideas later today. David Esp -- View this message in context: http://www.nabble.com/Date-Time-Stamp-input-method-for-user-specific-formats-tp25757018p25763935.html Sent from the R help mailing list archive at Nabble.com

[R] Date-Time-Stamp input method for user-specific formats

2009-10-05 Thread esp
Date-Time-Stamp input method to correctly interpret user-specific formats:coding is 90% there - based on exmple at http://tolstoy.newcastle.edu.au/R/help/05/02/12003.html ...anyone got the last 10% please? CONTEXT: Data is received where one of the columns is a datetimestamp. At midnight, th