RStudio view displays NA as 0(integer64 type column in dataframe)

When you print the data in the console, these values will be NA correctly (even in int64 column).

library(tibble)

(
tbl <- tibble(
  col_dbl = c(NA, 2, 3, 4, 5),
  col_int64 = bit64::as.integer64(c(NA, 2, 3, 4, 5))
  )
)
#> # A tibble: 5 x 2
#>   col_dbl col_int64
#>     <dbl> <int64>  
#> 1      NA NA       
#> 2       2  2       
#> 3       3  3       
#> 4       4  4       
#> 5       5  5

Created on 2020-05-13 by the reprex package (v0.3.0)

But, if you click on a dataset to see the preview(or View(tbl)), it shows first row value in col_int64 as 0.
Is this the right behavior?

This sounds like a bug. Would you mind filing this as a bug report at https://github.com/rstudio/rstudio/issues?

1 Like

Sure, I just submitted one here .
This is my first post, so please let me know if you have any problems.

Looks perfect. Thanks for filing the issue!

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.