Dear List:

I have a simple two-column data set in .csv format, with the first column
being the date and second column being some value.  I use read.csv() to
import the data as follows:



x <- read.csv("myfile.csv",header=T, dec=".", colClasses=c(Date="POSIXct"))



The structure of x is:



> str(x)

`data.frame':   2959 obs. of  2 variables:

 $ Date:'POSIXct', format: chr  "1998-01-01" "1998-01-01" "1998-01-01"
"1998-01-01" ...

 $ Value: num  0.07379 0.07181 0.01555 0.00630 0.00688 ...



This is not what I want.  Instead, I want the structure to be the same as
that of the following data set:



> str(danish)

 atomic [1:2167] 1.68 2.09 1.73 1.78 4.61 ...

 - attr(*, "times")='POSIXct', format: chr [1:2167] "1980-01-02 18:00:00"
"1980-01-03 18:00:00" "1980-01-04 18:00:00" "1980-01-06 18:00:00" ...



"danish" is a data set that the package "evir" comes with.


Any help would be appreciated.

	[[alternative HTML version deleted]]

