When I read a csv file with read.zoo, the first column name is not imported and cannot be referenced. Reading the same file with read.csv is fine:
> BoE101<- read.csv(file="C:/Users/Charles/Documents/R/Working files/BoE100.csv", header=TRUE,sep=",")
> head(BoE101)
Date Notes SightBk SightBS
30/09/1997 2515 37808 1013
31/10/1997 2523 34744 910
30/11/1997 2591 36060 1040
31/12/1997 2832 44573 950
31/01/1998 2495 47145 894
28/02/1998 2501 47511 1174
> BoE101<- read.zoo(file="C:/Users/Charles/Documents/R/Working files/BoE100.csv", header=TRUE,sep=",",format="%d/%m/%Y")
> head(BoE101)
Notes SightBk SightBS
1997-09-30 2515 37808 1013
1997-10-31 2523 34744 910
1997-11-30 2591 36060 1040
1997-12-31 2832 44573 950
1998-01-31 2495 47145 894
1998-02-28 2501 47511 1174
In the .csv case, the column header "Date" appears, in the .zoo case, it does not for the same source file.
Does anyone know why this is so and how to avoid it?