Skip to content
Prev 10322 / 15274 Next

Error in midnightStandard(charvec, format)

Hi Wei-han,

The problem is that your csv has tabs in the date.  One solution would
be to remove the tabs with gsub like this

    dataset$Date <- gsub("\t", "", dataset$Date)

That should get rid of the error.

A more elegant solution might be to use read.zoo from the zoo package
to read your csv.

HTH,
Garrett
On Tue, Jun 5, 2012 at 7:10 PM, Wei-han Liu <weihanliu2002 at yahoo.com> wrote: