1. 程式人生 > >R語言常用包及介紹

R語言常用包及介紹

https://www.rstudio.com/products/rpackages/

2.shiny閃亮使得它非常容易構建互動式Web應用程式與R. Shiny有自動“反應”繫結輸入和輸出和廣泛的預構建的小部件。
https://cran.r-project.org/web/packages/shiny/index.html

3.knitr是一個優雅,靈活和快速的動態報告生成,將R與TeX,Markdown或HTML相結合。
https://yihui.name/knitr/

4.ggplot 2是用於R的增強型資料視覺化包。輕鬆建立令人驚歎的多層圖形。ggplot2是基於圖形語法的R的繪圖系統,它試圖佔據基礎和格子圖形的良好部分,而不是壞的部分。它照顧了許多細節細節,使得繪製麻煩(如繪圖傳說),以及提供強大的圖形模型,使其易於製作複雜的多層圖形。
http://ggplot2.org/

5.tidyr是新的軟體包,可以輕鬆地“整理”您的資料。整潔的資料是易於使用的資料:可以輕鬆地(使用dplyr),視覺化(使用ggplot2或ggvis)和模型(使用R的數百個建模包)。
http://vita.had.co.nz/papers/tidy-data.html

6.readr使得讀取許多型別的表格資料變得容易,包括:使用read_delim(),read_csv(),read_tsv()和read_csv2()定義檔案,帶read_fwf()和read_table()的固定寬度檔案以及帶有read_log()的Web日誌檔案。
https://blog.rstudio.org/2015/04/09/readr-0-1-0/

7.Lubridate是一個R包,它使日期和時間更容易工作。以下是一些簡潔的旅程,一些浪漫可以為您做的事情。
https://cran.r-project.org/web/packages/lubridate/vignettes/lubridate.html

8.devtools的目的是通過提供簡化許多常見任務的R功能,使您的生活更輕鬆。
https://cran.r-project.org/web/packages/lubridate/vignettes/lubridate.html

9.magrittr提供了一種用於使用新的前向管道運算子%>%連結命令的機制。
https://cran.r-project.org/web/packages/magrittr/index.html

10.packrat是R的依賴管理工具,用於使您的R專案更加隔離,便攜和可重現。
http://rstudio.github.io/packrat/

11.stringr包旨在為常見的字串操作提供一個乾淨,現代的介面
https://cran.r-project.org/web/packages/stringr/vignettes/stringr.html

12.dplyr是plyr的下一個迭代,僅關注資料幀。dplyr更快,並且具有更一致的API。
https://github.com/hadley/dplyr

13Haven allows you to load foreign data formats (SAS, Spss and Stata) in to R by wrapping the fantastic ReadStat C library.
https://github.com/hadley/haven

14.Leaflet is one of the most popular open-source JavaScript libraries for interactive maps. This R package makes it easy to integrate and control Leaflet maps in R.
https://rstudio.github.io/leaflet/

15.The R package DT provides an R interface to the JavaScript library DataTables. R data objects (matrices or data frames) can be displayed as tables on HTML pages, and DataTables provides filtering, pagination, sorting, and many other features in the tables.
https://rstudio.github.io/DT/

16..Documentation is one of the most important aspects of good code. Without it, users won’t know how to use your package, and are unlikely to do so.  The goal of roxygen2 is to make documenting your code as easy as possible.
https://cran.r-project.org/web/packages/roxygen2/vignettes/roxygen2.html

17.Testing your code is normally painful and boring. testthat tries to make testing as fun as possible, so that you get a visceral satisfaction from writing tests. Testing should be fun, not a drag, so you do it all the time.
https://github.com/hadley/testthat

18.html widgets brings the best of JavaScript data visualization to R. You can use JavaScript visualization libraries at the R console, just like plots, embed widgets in R Markdown documents and Shiny web applications, and develop new widgets using a framework that seamlessly bridges R and JavaScript.
http://www.htmlwidgets.org/

19.shinydashboard makes it easy to use Shiny to create dashboards
http://rstudio.github.io/shinydashboard/index.html.