Skip to content

fread colClasses support for POSIXct #2610

Description

@jangorecki

Currently fread colClasses does not support conversion to POSIXct:

str(data.table::fread("c1,c2\n2018-01-31 03:16:57,b", colClasses=c(c1="POSIXct")))
#Classes 'data.table' and 'data.frame':	1 obs. of  2 variables:
# $ c1: chr "2018-01-31 03:16:57"
# $ c2: chr "b"
# - attr(*, ".internal.selfref")=<externalptr> 

related to #1450
once solved update: https://stackoverflow.com/questions/41903259/data-table-colclasses-conversion-to-posixct

Activity

  1. added this to the 1.12.4 milestone on May 2, 2019
  2. MichaelChirico commented on May 2, 2019

    @MichaelChirico
    Member

    Haven't quite closed the SO question since it refers to as.POSIXct being slow on huge data... Related to #587 or #1450 then?

  3. mattdowle commented on May 2, 2019

    @mattdowle
    Member

    Yes: #1450 outstanding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions