2
代碼示出了如:解析雙分組數目與readr :: parse_double()
readr::parse_double("123,456,789.987",
locale = locale(decimal_mark = ".",
grouping_mark = ","))
其中預期的結果是:123456789.987
但原來的錯誤:
1 parsing failure.
row # A tibble: 1 x 4 col row col expected actual
expected <int> <int> <chr> <chr> actual 1 1
NA no trailing characters ,456,789.987
[1] NA
attr(,"problems")
我想知道爲什麼發生這種情況以及如何解決它?