[R] Plotting two time series with different frequencies

2011-02-24 Thread Gabriel Bergin
Hi, I have two time series; one of annual data and one of monthly data. How do I plot these on the same plot? I checked out ts.plot(), but it only allows for different starting times, not different frequencies. Sincerely, Gabriel Bergin gabr...@bergin.se [[alternative HTML version

[R] Factors in an regression using lm()

2010-10-12 Thread Gabriel Bergin
will be ignored I understand that there is something wrong due to the fact that some of the variables are factors. But as far as I've grasped, it should be possible to include factor variables when using lm(). Am I in error in thinking this? Sincerely, Gabriel Bergin Undergraduate economics

[R] Create a time-series from cross-sectional data that has each year as a separate column

2010-09-12 Thread Gabriel Bergin
NA NA ... $ D2006 : num NA NA 189 NA NA ... $ D2007 : num NA NA NA 14 1.91 ... How do I transform this into something that I can make a time-series of? Sincerely, Gabriel Bergin gabr...@bergin.se [[alternative HTML version deleted]] ___