yuanfan
施主缘分来了,俺又碰到了这个“红点” ,举个栗子¹hair
,“1”和“h”之间的红点,是个特殊字符
> utf8ToInt('¹hair')
[1] 185 8203 104 97 105 114
复现(把 R Console 拉窄一点,然后 print 变量稍多的 tibble)
> dplyr::starwars
# A tibble: 87 × 14
name height mass hair_…¹ skin_…² eye_c…³ birth…⁴
<chr> <int> <dbl> <chr> <chr> <chr> <dbl>
1 Luke Skyw… 172 77 blond fair blue 19
2 C-3PO 167 75 NA gold yellow 112
3 R2-D2 96 32 NA white,… red 33
4 Darth Vad… 202 136 none white yellow 41.9
5 Leia Orga… 150 49 brown light brown 19
6 Owen Lars 178 120 brown,… light blue 52
7 Beru Whit… 165 75 brown light blue 47
8 R5-D4 97 32 NA white,… red NA
9 Biggs Dar… 183 84 black light brown 24
10 Obi-Wan K… 182 77 auburn… fair blue-g… 57
# … with 77 more rows, 7 more variables: sex <chr>,
# gender <chr>, homeworld <chr>, species <chr>,
# films <list>, vehicles <list>, starships <list>, and
# abbreviated variable names ¹hair_color, ²skin_color,
# ³eye_color, ⁴birth_year
# ℹ Use `print(n = ...)` to see more rows, and `colnames()` to see all variable names
环境信息
> sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux
Matrix products: default
BLAS: /opt/R/R_4.1.2/lib64/R/lib/libRblas.so
LAPACK: /opt/R/R_4.1.2/lib64/R/lib/libRlapack.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices datasets utils
[6] methods base
loaded via a namespace (and not attached):
[1] fansi_1.0.3 assertthat_0.2.1 utf8_1.2.2
[4] dplyr_1.0.10 R6_2.5.1 DBI_1.1.3
[7] lifecycle_1.0.3 magrittr_2.0.1 pillar_1.8.1
[10] rlang_1.0.6 cli_3.4.0 renv_0.13.2
[13] rstudioapi_0.14 vctrs_0.4.1 generics_0.1.3
[16] ellipsis_0.3.2 tools_4.1.2 glue_1.6.2
[19] purrr_0.3.4 compiler_4.1.2 pkgconfig_2.0.3
[22] tidyselect_1.1.2 tibble_3.1.6