如何在排序数字的字符向量时阻止R将字符串转换为数字?使用dplyr arrange()的示例
nomenclature <- read_csv2(file('~/nomenclature.txt', encoding="UTF-8"))
head(nomenclature$NOMENCLATURE)
[1] "8414900090" "6108320000" "8517709000" "6104430000" "4202310090" "8479908099"
nomenclature <- nomenclature %>% arrange(NOMENCLATURE)
head(nomenclature$NOMENCLATURE)
[1] "1.52e+09" "1.801e+09" "1.804e+09" "1.805e+09" "1001190030" "1001990094"发布于 2017-03-10 21:08:20
请参阅MrFlick的第二个注释:"e+“值实际上在arrange()之前存在
https://stackoverflow.com/questions/42723666
复制相似问题