Skip to content
Prev 175002 / 398506 Next

Getting started,

In answer to your first question, your statement should be:

date_vec = as.Date(data_download[1:50,1],"%m/%d/%Y")

Notice the capital "Y"; lower case says the year is only 2 digits, so
you were pickup up the '19' from the date.

Use 'plot(..., type='l')' for a line plot.

Your data is being read in as factors:
'data.frame':   9972 obs. of  2 variables:
 $ DATE: Factor w/ 9972 levels "01/01/1973","01/01/1974",..: 84 112
140 167 195 279 307 335 362 390 ...
 $ EDM1: Factor w/ 673 levels " 0.70"," 0.75",..: 599 597 593 594 591
586 583 571 574 586 ...

You need to convert EDM1 to numeric

data_download$EDM1 <- as.numeric(as.character(data_download$EDM1))

and then your data will plot as you like.
On Thu, Mar 26, 2009 at 6:58 AM, gug <guygreen at netvigator.com> wrote: