Skip to content

Commit 51389d4

Browse files
use is.na<- to set NA
1 parent 0795dee commit 51389d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/print.data.table.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ format_col.POSIXct = function(x, ..., timezone=FALSE) {
192192
tz = attr(x,'tzone',exact=TRUE)
193193
nas = is.na(x)
194194
x = paste0(as.character(x)," ",tz)
195-
x[nas] = NA_character_
195+
is.na(x) = nas
196196
} else {
197197
x = format(x, usetz=FALSE)
198198
}

0 commit comments

Comments
 (0)