Skip to content

Commit

Permalink
use is.na<- to set NA
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Aug 6, 2021
1 parent 0795dee commit 51389d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/print.data.table.R
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ format_col.POSIXct = function(x, ..., timezone=FALSE) {
tz = attr(x,'tzone',exact=TRUE)
nas = is.na(x)
x = paste0(as.character(x)," ",tz)
x[nas] = NA_character_
is.na(x) = nas
} else {
x = format(x, usetz=FALSE)
}
Expand Down

0 comments on commit 51389d4

Please sign in to comment.