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

as.ITime bug with short time format #2940

Closed
polyjian opened this issue Jun 17, 2018 · 0 comments · Fixed by #2941
Closed

as.ITime bug with short time format #2940

polyjian opened this issue Jun 17, 2018 · 0 comments · Fixed by #2941
Assignees
Milestone

Comments

@polyjian
Copy link

@polyjian polyjian commented Jun 17, 2018

Notice that data.table::as.ITime(c('xxx', '10:43')) return NA, NA below which should be a bug.

data.table::as.ITime(c('10:43'))
[1] "10:43:00"
data.table::as.ITime(c('xxx', '10:43'))
[1] NA NA
There were 11 warnings (use warnings() to see them)
data.table::as.ITime(c('xxx', '10:43:01'))
[1] NA "10:43:01"
warnings()
Warning messages:
1: In [<-.POSIXlt(*tmp*, w[nna], value = structure(list( ... :
number of items to replace is not a multiple of replacement length
2: In [<-.POSIXlt(*tmp*, w[nna], value = structure(list( ... :
number of items to replace is not a multiple of replacement length
3: In [<-.POSIXlt(*tmp*, w[nna], value = structure(list( ... :
number of items to replace is not a multiple of replacement length
4: In [<-.POSIXlt(*tmp*, w[nna], value = structure(list( ... :

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.

4 participants