在R中对data.frame变量进行ggploting时出错?

问题描述

我无法理解错误,这就是为什么我不会产生data.frame的原因。但是,当我执行以下代码

BY %>% select(c(1,3,4)) %>% 
+   pivot_longer(-Date,names_to = "Variable",values_to = "Value")

我收到以下警告

# A tibble: 7,350 x 3
   Date       Variable Value
   <chr>      <chr>    <dbl>
 1 1993-03-01 Sim          0
 2 1993-03-01 Obs          0
 3 1993-03-02 Sim          0
 4 1993-03-02 Obs          0
 5 1993-03-03 Sim          0
 6 1993-03-03 Obs          0
 7 1993-03-04 Sim          0
 8 1993-03-04 Obs          0
 9 1993-03-05 Sim          0
10 1993-03-05 Obs          0
# ... with 7,340 more rows
Warning message:
`...` is not empty.

We detected these problematic arguments:
* `needs_dots`

These dots only exist to allow future extensions and should be empty.
Did you misspecify an argument?

我相信有一些characters导致warnings and errors。有没有一种方法可以找到确切值missing/replace by strange character的位置,以及如何摆脱看到它们的整个row的位置?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)