[R] matlab serial date to r

2014-06-25 Thread Christoph Schlächter
Hi, I have a matlab variable as serial date (class double) in the form 'dd-mmm- HH:MM:SS'. format long disp( tx(40:60,1) ) 1.0e+05 * 7.35600813091 7.35600956856 7.35601305921 7.35601654985 7.35602004049 7.35602353113 7.35602702178 7.356000

[R] Subset, period of days like one after another in a group

2014-05-20 Thread Christoph Schlächter
Dear all, I have a subset of a data frame with 3 columns and a few rows. The columns are “date” [%Y %m %d], “mon” [%b] and “wea” for type of weather with “dw” dry weather “rw” rainy weather. Here it is as a list: structure(list(date = structure(c(15765, 15766, 15767, 15768,

Re: [R] subset of obersevation depending on multiple conditions

2014-04-29 Thread Christoph Schlächter
Dear, This is a very efficient way. I have checked some values and it is what is was looking for. I want to find the days called dry-weather days. It depends but in my case it is a dry day if on this day the precipitation "N" is equal or less than 0.3 mm and if on the day before the day with N <=

[R] subset of obersevation depending on multiple conditions

2014-04-28 Thread Christoph Schlächter
Hello, I want to subset a data.frame containing the variables "Date" in (%Y %m %d ) and "N". I want to print "Date" and "N" if N is less than or equal to 0.3 and if "N" is also less than or equal to 0.3 on the day before the day where "N" is less than or equal to 0.3. This would be the case in