作者:
newns (希望的希)
2017-12-20 20:29:43已經安裝程式套件"Rcmdr"
在R console輸入"library(Rcmdr)"
開啟R commander,點選資料->匯入資料->按OK後
在學校用的時候會出現一個資料夾可以選excel檔案啊...
可是我在家裡電腦用完全沒反應...
R console顯示:
in structure(.External(.C_dotTclObjv, objv), class = "tclObj") :
[tcl] list element in braces followed by "{"所有檔案"" instead of space.
請問這到底是...
R新手現在作業寫不出來焦慮中...
Try to use "readxl" library?
作者:
newns (希望的希)
2017-12-20 20:43:00請問clan大這已經是語法了嗎?我真的是初學者啊......
我完全沒有使用Rcmdr的經驗,不過如果你是要有手動選csv檔的對話視窗,要不要試試file.choose()?例如直接打指令:my_data <- read.csv(file.choose())如果你未來會常常用R跑統計,我覺得越早擺脫Rcmdr越好
作者:
asdfrtg (asdfrtg)
2017-12-20 22:08:00直接把檔案另存成.csv 再用read.csv()@@?
if you do not know how to write codeIn Rstudio, File(upperleft side) -> import dataset-> from Excel. This would be activiated by "readxl"
作者: chgsh14414 (amo) 2017-12-21 11:29:00
如果你的R commander是中文介面改成英文試試,先在R console裡面打“Sys.setenv(LANG = "en")芋A然後再然後再打開Rcmdr讀檔