One feature that I love about the tibble package is that "hidden" white spaces are made obvious with quotations.
aa <- tibble::tibble(abc= c("one", "two ", " three"))
aa
#> # A tibble: 3 x 1
#> abc
#> <chr>
#> 1 one
#> 2 "two "
#> 3 " three"
For larger datasets, however, I like to use the RStudio data viewer (View(aa)
) to take a quick look at the data for problems. However, leading and trailing whitespaces disappear, making it difficult to diagnose the problem. Is there a way to somehow "un-hide" the white spaces in View
? (at the very least, for leading white spaces)