我已经更新了我的 Windows 并且 R 无法运行,因此 R studio 也不能运行。当我运行 R GUI 时,它只是冻结并且没有响应。我已允许防火墙免除铬
我正在使用 Windows Insider 程序并且刚刚更新为
Windows 10 Home, Insider Preview
Evaluation Copy.Build 20190.rs_prerelease.200807-1609
请注意,R GUI 会冻结然后自行关闭,因此问题可能出在 R GUI 而不是 R Studio。
我在 R studio 上收到以下错误。
This site can’t be reached
127.0.0.1 refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
Cannot Connect to R
RStudio can't establish a connection to R. This usually indicates one of the following:
The R session is taking an unusually …
Run Code Online (Sandbox Code Playgroud) 假设您有 2 个文件,如下所示。
\nfile_1_october.csv\nfile_2_november.csv\n
Run Code Online (Sandbox Code Playgroud)\n这些文件具有相同的列。所以我想阅读这两个文件,在R
其中我可以轻松地使用地图。我还想在每个读取的文件中包含一个month
带有文件名的列。例如,对于file_1_october.csv
,我想要一个名为 \xe2\x80\x9cmonth\xe2\x80\x9d 的列,其中包含单词 \xe2\x80\x9cfile_1_october.csv\xe2\x80\x9d。
为了重现性,假设file_1_october.csv
是
name,age,gender\njames,24,male\nSue,21,female\n
Run Code Online (Sandbox Code Playgroud)\n而 file_2_november.csv 是
\nname,age,gender\nGrey,24,male\nJuliet,21,female\n
Run Code Online (Sandbox Code Playgroud)\n我想读取这两个文件,但在每个文件中都包含一个与文件名相对应的月份列,这样我们就有了;
\nname,age,gender,month\njames,24,male, file_1_october.csv\nSue,21,female, file_1_october.csv\n
Run Code Online (Sandbox Code Playgroud)\n和
\nname,age,gender,month,\nGrey,24,male, file_2_november.csv,\nJuliet,21,female, file_2_november.csv\n
Run Code Online (Sandbox Code Playgroud)\n