search for: timebasedseq

Displaying 4 results from an estimated 4 matches for "timebasedseq".

2012 Aug 01
1
timeBasedSeq stumbles over the year 2038 (xts package)
I have the following problem: As expected I obtain timeBasedSeq( 2037/2037) [1] "2037-01-01" > However if I do the same for 2038 I get timeBasedSeq( 2038/2038) [1] "2038-01-01" "2039-01-01" I get the same strange result if I use later years or any interval that contains 2038: timeBasedSeq( 2037/2039) [1] "2037-01-01"...
2012 Jun 13
1
what does .indexDate() do - R::xts
Dear R experts, I am learning the very useful XTS package, but cannot figure out the purpose of some commands. in particular, the .indexDate() command does not work as expected. say: x <- timeBasedSeq('2010-01-01/2010-01-02 12:00') x <- xts(1:length(x), x) then i can subset on date as follows: x['2010-01-01'] however the .indexDate() command does not work as expected; in particular the following does not return anything. x[.indexDate(x) == '2010-01-01'] I am sure...
2009 Jan 11
1
temporal join
I have dataframe a: sym date val1 === ==== ==== foo 20090101 a1 foo 20090102 a2 foo 20090103 a3 and dataframe b: sym date val2 === ==== ==== foo 20090104 b1 I would like to join/merge them to generate the following: sym date val2 val1 === ==== ==== ==== foo 20090104 b1 a3 i.e. an equijoin on column 'sym' and a temporal join on column 'date' where the closest matching row is
2013 Feb 15
3
datos climáticos cambio de formato
Hola!! tengo un data.frame donde cada fila corresponde a un año y cada columna a un mes (De enero a diciembre) > head(valT) V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13 1941 18.0 16.3 15.2 10.1 8.1 8.3 8.8 9.2 7.9 12.2 11.9 14.6 1942 17.2 15.9 13.6 11.6 8.7 6.2 6.4 7.2 9.7 12.0 14.1 16.7 1943 17.6 17.3 13.5 12.5 10.5 7.0 8.2 7.9 -999.9 -999.9