Displaying 2 results from an estimated 2 matches for "dateseq".
2012 Aug 28
3
date in plot, can't add regression line
...(ydata~xdata) <------ now this works, great
abline(xylm, col="black")
The problem now is that I can't get the dates onto the xaxis. I have tried turning off the axis using xaxt="n" and reploting using the axis.POSIXct() call but it does not want to display the dates:
dateseq = seq(xdates[1], xdates[length(xdates)], by="month")
axis.POSIXct(1, at=dateseq, format="%Y\n%b")
I have tried combining both approaches by plotting dates and trying to fit the line using method 2:
xdates <- tradeflavorbyday$timestamp[tradeflavorbyday$tradeflavor == 1]
xd...
2009 Feb 09
2
Counting session days
hi,
I have some session data in a dataframe, where each session is recorded with a start and a stop date. Like this:
session_start session_stop
===================
2009-01-03 2009-01-04
2009-01-01 2009-01-05
2009-01-02 2009-01-09
A session is at least one day long. Now I want a dataframe with 'active sessions' per date. Like this:
date active_sessions
=============
2009-01-01 1