我有一个与 tabulizer 一起使用的脚本,但必须清理我的硬盘并重新安装 R,现在我什至无法下载和访问 tabulizer 库。我现在使用 R 版本 4.1.2 64 位,我想也许我需要使用早期版本的 R???这是我尝试安装 tabulizer 时收到的错误消息。
\ninstall.packages("tabulizer")\nInstalling package into \xe2\x80\x98C:/Users/cdonner/Documents/R/win-library/4.1\xe2\x80\x99\n(as \xe2\x80\x98lib\xe2\x80\x99 is unspecified)\nWarning in install.packages :\n package \xe2\x80\x98tabulizer\xe2\x80\x99 is not available for this version of R\n\nA version of this package for your version of R might be available elsewhere,\nsee the ideas at\nhttps://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages\nRun Code Online (Sandbox Code Playgroud)\n我尝试去 Cran ( https://cran.r-project.org/src/contrib/Archive/tabulizer/ ) 并将库下载并解压到我的目录中,但随后我再次收到错误。有任何想法吗?谢谢。
\n我希望将 ifelse() 与 mutate() 一起使用,如果条件为 false,则保留该值。这是我正在处理的内容:
df <- df %>% mutate(column1 = ifelse(is.na(column1), 0, "insert code to do nothing"))
Run Code Online (Sandbox Code Playgroud)