Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upcreate and export as.nanotime #47
Comments
|
If I understand correctly, the end goal would be something like this, with a conversion from fread("a_file_that_contains_nanotimes.csv", colClasses="nanotime") |
|
fread was just an example of a function that could utilise |
|
For reasons I no longer remember our constructor was always just S3method(as.Date,nanotime)
S3method(as.POSIXct,nanotime)
S3method(as.POSIXlt,nanotime)
S3method(as.data.frame,nanotime)
S3method(as.integer64,nanotime) |
|
The reason I was asking for the end goal is that I'm not sure if there's a consensus that |
|
@lsilvest regarding fread and
|
|
example where |
|
I am sorry but can you be more specific? I read the #4101 link but it "didn't click". |
|
Provided wrapper function calls |
|
Yes, I agree we should provide the |
It might be sometimes useful to operate on arbitrary type objects. For example if
fread'scolClassesarg will be supplied with"nanotime"type, then we could flexibly dispatch to arbitrary class by usingas.*functions are kind of standard in R.