Skip to content
Prev 202029 / 398503 Next

column of dates into time series

How about a representation of the data that one could so something  
with? By that I mean either by the "dump" method described in the  
Posting Guide or by using dput:
 > ttt <- c(1,2)

 > dput(ttt)
c(1, 2)

 > dump("ttt", stdout() )
ttt <-
c(1, 2)

Did you honestly expect anyone in their right mind to reassemble that  
data from the console text output???
On Nov 29, 2009, at 10:46 AM, DispersionMap wrote:

            
Well, you don't really have dates anymore, do you? You have week  
numbers with labels that look like dates. So ordering them is a piece  
of cake given the laws of mathematics.

Weeks[order(Weeks)]  #untested... no reproducible data

  Aggregating them into counts can be done with  various functions,  
the most basic of which is table:

table(Weeks)