Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fread colClasses support for POSIXct #2610

Closed
jangorecki opened this issue Feb 7, 2018 · 2 comments
Closed

fread colClasses support for POSIXct #2610

jangorecki opened this issue Feb 7, 2018 · 2 comments
Labels
Milestone

Comments

@jangorecki
Copy link
Member

@jangorecki jangorecki commented Feb 7, 2018

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

@MichaelChirico
Copy link
Member

@MichaelChirico MichaelChirico commented May 2, 2019

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

@mattdowle
Copy link
Member

@mattdowle mattdowle commented May 2, 2019

Yes: #1450 outstanding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.