[R]顯示完整數字,不顯示科學記號

只要輸入,調整可顯示的位數

options(scipen = 999)
0 Comments

[R]Error when saving xlsx workbook with package openxlsx

如果在windows系統使用saveWorkbook()出現以下錯誤訊息

Error: zipping up workbook failed. Please make sure Rtools is installed or a zip application is     available to R.
Try installr::install.rtools() on Windows.
installr::install.rtools()
No need to install Rtools - You've got the relevant version of Rtools installed
saveWorkbook(wb, file = "dq", overwrite = TRUE)
Error: zipping up workbook failed. Please make sure Rtools is installed or a zip application is available to R.
Try installr::install.rtools() on Windows.
0 Comments

[Python][爬蟲]利用python下載zip檔並解壓縮

下載檔案是使用package urllib2
解壓縮檔案則是使用package zipfile

0 Comments

[Python][爬蟲]如何刪除網頁中的 & nbsp;

在爬取網頁時偶爾會碰到

0 Comments

[Python][爬蟲]不同的 Content-Type (application/json)

目標是爬取 http://waste.epa.gov.tw/WasteConfigure/VocationCode.asp
所有的行業代碼與中文名稱。

0 Comments

[R]在R中使用system呼叫python-給予參數

之前介紹過在R中使用system呼叫python

system("python python_script.py")
0 Comments

[R]設定 R 圖形字體

一開始碰到需要調整圖形字體是在使用windows的自動排程時字體變成框框, 以下的解法是針對windows方能使用。

0 Comments

[R]R batch

R batch

0 Comments