吳齊軒/漫談 R 的學習挑戰與 R 語言翻轉教室

6,292 views

Published on

國立臺灣大學電機所博士生,平時致力於推廣 R 語言,曾主辦多場 R 語言推廣講座,並經常於 Taiwan R User Group 分享 R 的使用心得。有豐富的 R 語言實務經驗,包含資料的收集、整理、分析到報告製作。擅長根據專案需求,量身打造 R 的資料分析系統,以及運用 R 和 C++ 撰寫高效能演算法。

Published in: Data & Analytics
0 Comments
45 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
6,292
On SlideShare
0
From Embeds
0
Number of Embeds
58
Actions
Shares
0
Downloads
551
Comments
0
Likes
45
Embeds 0
No embeds

No notes for slide

吳齊軒/漫談 R 的學習挑戰與 R 語言翻轉教室

  1. 1. RR RR Wush Wu Taiwan R User Group
  2. 2. R 2/80
  3. 3. http://spectrum.ieee.org/computing/software/the-2015-top-ten-programming-languages 3/80
  4. 4. http://myfootpath.com/careers/engineering-careers/statistician-careers/ 4/80
  5. 5. http://www.r-bloggers.com/mapping-the-worlds-biggest-airlines/ 5/80
  6. 6. http://r4stats.com/2013/03/19/r-2012-growth-exceeds-sas-all-time-total/ 6/80
  7. 7. 7/80
  8. 8. http://img.diynetwork.com/DIY/2003/09/18/t134_3ca_med.jpg 8/80
  9. 9. R R R R · · · 9/80
  10. 10. https://docs.oracle.com/cd/B28359_01/datamine.111/b28129/process.htm 10/80
  11. 11. R 11/80
  12. 12. http://globalebc.mx/cooperation-program 12/80
  13. 13. https://docs.oracle.com/cd/B28359_01/datamine.111/b28129/process.htm 13/80
  14. 14. http://img.diynetwork.com/DIY/2003/09/18/t134_3ca_med.jpg 14/80
  15. 15. http://www.youtube.com/watch?v=OCQU6M4pPiw 15/80
  16. 16. Data Package Lahman R (httr rvest) R API Package · · · Best Practices for Writing an API Package quantmod twitteR - - 16/80
  17. 17. 17/80
  18. 18. [1] "TWII" TWII.OPEN TWII.HIGH TWII.LOW TWII.CLOSE TWII.VOLUME TWII.ADJUSTED 7871.41 7937.26 7843.60 7920.80 5710600 7920.777 7954.96 7999.42 7917.30 7917.30 5951400 7917.277 7929.89 7955.90 7901.24 7934.51 5717400 7934.487 7940.20 7942.23 7821.71 7835.57 5181400 7835.547 7778.57 7797.57 7736.11 7736.71 4292400 7736.688 7778.38 7827.93 7778.38 7790.01 4516000 7789.987 library(quantmod) getSymbols("^TWII") head(TWII) 18/80
  19. 19. : AirbnB uses R to scale data science Rbnb Airbnb's engineering, data science, analytics and user experience teams Hadoop / SQL R Missing Data · · · · 500+ How Airbnb uses Machine Learning to Detect Host Preferences How well does NPS predict rebooking? - - - 19/80
  20. 20. Reproducible Research· R Markdown Jupyter ir-kernel - - 20/80
  21. 21. 21/80
  22. 22. 22/80
  23. 23. R R· · 23/80
  24. 24. R R 24/80
  25. 25. http://joelcadwell.blogspot.tw/2013/03/lets-do-some-hierarchical-bayes-choice.html 25/80
  26. 26. R GUI R · · R (help)- · · · · 26/80
  27. 27. R R R · R- · R R - - 27/80
  28. 28. R R· R - - - 28/80
  29. 29. · - 29/80
  30. 30. · - · copy paste - - 30/80
  31. 31. 31/80
  32. 32. ptt R_Language· · 32/80
  33. 33. Estimate NA Beta Beta Intercept,data[,2],data[,3],data[,i],data[,j],data[,i]:data[,j] 33/80
  34. 34. [ ]: Oracle ( big5) DBMSencoding [ ]: con <- odbcConnect(dsn, uid = "", pwd = "", DBMSencoding="big5") 34/80
  35. 35. R UseMethod("xmlNamespaceDefinitions") : 'xmlNamespaceDefinitions' "NULL" 35/80
  36. 36. [ ]: R ( SAS) .DAT 65 40 R read.delim() XD ~ 36/80
  37. 37. 21 ( 21 ) sample(52) cards<-sample(52) num<-cards%%13 num (5213 ) ? 37/80
  38. 38. 38/80
  39. 39. 39/80
  40. 40. · · · 40/80
  41. 41. R· · - - 41/80
  42. 42. R 42/80
  43. 43. http://radiusonline.com/interns/my-first-month-at-radiusonline/learn-by-doing/ 43/80
  44. 44. R R Live Demo: · · wush@datascienceandr.org- 44/80
  45. 45. · - - · 45/80
  46. 46. 01-RBasic-02-Data-Structure-Vectors # 87 91 year1 <- 87:91 power1 <- c(6097059332, 6425887925, 6982579022, 7323992602.53436, 7954239517) # 87 91 power2 <- c(59090445718, 61981666330, 67378329131, 66127460204.6482, 69696372914.6949) # (`year1`) `7e9` # `7e9` R `7 * 10^9` year1.answer1 <- < > # 87 91 power1.mean <- < > 46/80
  47. 47. 02-RDataEngineer-01-Parsing # <http://data.gov.tw/node/7769> # # # # R pirate_info <- readLines(file(pirate_path, encoding = < encoding>)) 47/80
  48. 48. 02-RDataEngineer-06-Join #' `gdp_path` `gdp` #' `gdp_path` / GDP( ) ... #' cl_info mortgage_bal data_dt #' cl_info `cl_info_year` ... #' `gdp` `cl_info` #' gdp mortgage_total_bal / gdp 48/80
  49. 49. · vignettes help - - example - - 49/80
  50. 50. R · - · · 50/80
  51. 51. 00-Hello-DataScienceAndR 01-RBasic 02-RDataEngineer 03-RVisualization Optional-Programming Project-ROpenData · · · · · · 51/80
  52. 52. Hello DataScienceAndR swirl · - - - · 52/80
  53. 53. R Basic R R · · · · 53/80
  54. 54. R Data Engineer · API Server JSON - - - - · · 54/80
  55. 55. R Visualization ggplot2 googleVis ggmap · · · 55/80
  56. 56. Hello World· · 56/80
  57. 57. Wush Wu Chih Cheng Liang Cheng-Yu Lin Johnson Hsieh CC - 3.0 · · 57/80
  58. 58. 58/80
  59. 59. 2016-02-13 2016-07-15 1238 9528 5301 · · · · 59/80
  60. 60. 60/80
  61. 61. 61/80
  62. 62. R 62/80
  63. 63. R tracking server · - · - 63/80
  64. 64. 64/80
  65. 65. 65/80
  66. 66. http://www.effectivephilanthropy.org/qa-improving-application-and-reporting-processes/ 66/80
  67. 67. 67/80
  68. 68. Swirl Project lesson.yaml swirl · - - - · https://github.com/swirldev/swirl/compare/master...wush978:mast- - Class: meta Course: DataScienceAndR Lesson: 00-Hello-DataScienceAndR Author: Wush Wu Type: Standard Organization: Taiwan R User Group 68/80
  69. 69. 69/80
  70. 70. cmd_question - Class: cmd_question Output: `chol2inv` CorrectAnswer: help(chol2inv) AnswerTests: any_of_exprs("?chol2inv", "help(chol2inv)") Hint: `?` `help` 70/80
  71. 71. 71/80
  72. 72. mult_question - Class: mult_question Output: | assignment R console `a - 1` AnswerChoices: 1;2;" ";"4" CorrectAnswer: 1 AnswerTests: omnitest(correctVal= '1') 72/80
  73. 73. 73/80
  74. 74. script - Class: script Output: | `submit()` Rstudio File -> Reopen With Encoding... -> UTF-8 Script: RBasic-02-HW.R AnswerTests: rbasic_02_hw_test() 74/80
  75. 75. 75/80
  76. 76. DataScienceAndR/ 01-RBasic-02-Data-Structure-Vectors/ customTests.R initLesson.R lesson.yaml scripts/ RBasic-02-HW.R RBasic-02-HW-correct.R 76/80
  77. 77. Tests omnitest any_of_exprs My implementations: · · · https://github.com/wush978/swirl/blob/master/R/answerTests3.R- 77/80
  78. 78. Installation https://github.com/wush978/R/blob/gh-pages/init-swirl.R 78/80
  79. 79. Q&A 79/80
  80. 80. R vs Python Choosing R or Python for data analysis? An infographic Pros and Cons of R vs Python Sci-kit learn Which is better for data analysis: R or Python? How to Choose Between Learning Python or R First · · · · 80/80

×