Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
R & R Studio
Search
hujuu
July 23, 2016
Business
4
590
R & R Studio
【第1回】R Business Analysisで使用したRのチュートリアル資料です。RとR Studioのインストール方法や簡単なサンプルコードを載せています。
hujuu
July 23, 2016
Tweet
Share
More Decks by hujuu
See All by hujuu
R&RStudio入門
hujuu
0
680
ggplot2の導入とヒストグラム作成
hujuu
0
510
Other Decks in Business
See All in Business
workx-company-profile
eastfields
0
21k
決算審査意見書自動作成ツール 改良プロジェクト
tokyo_metropolitan_gov_digital_hr
0
310
GA technologies Co.,Ltd. Corporate Story
gatechnologies
2
920
KRAF Impact Report 2024(English)
kraf
0
190
Sales Marker Culture Book(English)
salesmarker
PRO
1
3k
Works Human Intelligence
whisaiyo
1
79k
行動なしに良い仮説思考はできない
tumada
PRO
7
940
FinOps入門×三大クラウドコスト削減術_Azureコスト削減ポイント紹介
katsura127
0
140
Entrance Book ビジネスイノベーションサービス部
arisaiyou
0
220
freee + Product Design FY24 Q2
freee
4
9.4k
タケウチグループRecruit
takeuchigroup
0
2k
デジタルツールを活用した収用委員会運営プロジェクト
tokyo_metropolitan_gov_digital_hr
0
280
Featured
See All Featured
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
66k
How STYLIGHT went responsive
nonsquared
95
5.2k
Writing Fast Ruby
sferik
628
61k
Visualization
eitanlees
146
15k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Testing 201, or: Great Expectations
jmmastey
40
7.1k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
17
2.3k
KATA
mclloyd
29
14k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Transcript
R & R STUDIO ʲୈ1ճʳR BUSINESS ANALYSIS
R Business Analysis ͡Ίʹ • RͷֶशใަΛ͢ΔձΛ͡Ί·ͨ͠ʂ • ϏδωεɺϚʔέςΟϯάدΓઢͰͷR׆༻ • গਓϕʔεͷࢀՃܕίϛϡχςΟ
• connpassάϧʔϓʹ͝ࢀՃΛ!!
R Business Analysis ͻͱ·ͣࣗݾհ • Rྺ • 1͘Β͍ • େֶ
3ϲ݄ • ࣾձਓ 8ϲ݄ • ౘ • δϣϒϗούʔٙ • స৬૬ஊडத!! @hujuu
R Business Analysis RͲΜͳݴޠʁ ౷ܭղੳ͚ͷϓϩάϥϛϯάݴޠ ؔܕݴޠͷҰͭͰ͋ΔSchemeͷӨڹΛड͚͍ͯΔ ·ͨදه๏CʹӨڹΛड͚͍ͯΔ෦͋Δ webܥͷRubyPHP, javascriptͱ͍ͬͨݴޠͱ༻్ త͕ҧ͏ͷͰ࠷ॳͪΐͬͱΠϝʔδ͕༙͖ʹ͍͔͘
4
R Business Analysis ൺֱ༰ OS Mac,Windows,Linux WindowsϝΠϯ Macͩͱੳػೳ͕ෆࣗ༝ ॲཧ ˚
X ѻ͑Δσʔλྔ ʓ (150ສߦͷಡΈࠐΈՄೳ) X (1,048,576 ߦɺ16,384 ྻ) ֦ுੑ ʓ ˚ GUI ˚ ʓ Ձ֨ ແྉ ༗ྉʢ݄ઍԁʙʣ ར༻༻్ ౷ܭղੳ දܭࢉࢿྉ࡞ͳͲଟ༷
R Business Analysis • ॲཧ͕༏Ε͍ͯΔͨΊɺେنσʔλΛੳ͢Δࡍޮత • ExcelͰͰ͖ͳ͍౷ܭੳ͕ग़དྷΔ • ྫ :
Ϋϥελʔੳ, όεέοτੳ(ΞιγΤʔγϣϯੳ) • ༷ʑͳύοέʔδΛ׆༻͢Δ͜ͱͰੳͷ෯͕͛ΒΕΔ • άϥϑͷඳըʹڧ͍ • ggplot2ͰͷάϥϑԽࣗ༝͕ߴ͘ɺࢹೝੑ͕ߴ͍σβΠϯ ɹɹɹͷओͳϝϦοτ
R Business Analysis EXCEL͚ͩͰेͳέʔε • σʔλྔ͕খ͍͞ • ࢛ଇܭࢉΛத৺ͱͨ͠ॲཧͰࣄΓΔ • ఆৗతͳੳۀ͕ൃੜ͠ͳ͍
• ଞͷਓʹσʔλܗੳΛͯ͠Β͏߹ɹɹɹ ˢɹҙ֎ͱ͋Δ
R Business Analysis ɹɹɹͷΠϯετʔϧ 1. CRANʢThe Comprehensive R Archive NetworkʣʹΞΫηε
https://cran.r-project.org/ 2. ༻͍ͯ͠ΔOSʹ͋ΘͤͯRͷΠϯετʔϥʔΛμϯϩʔυ ޙͰ͏ύοέʔδ͕ಈ͔ͳ͍͜ͱ͕ແ͍Α͏ʹ࠷৽൛Λ 3. μϯϩʔυͨ͠ϑΝΠϧΛ։͍ͯΠϯετʔϧ 4. ΞϓϦέʔγϣϯϑΥϧμʹʮRʯ͕͋ΕΠϯετʔϧྃ
R Business Analysis
R Business Analysis αϯϓϧίʔυ 2 ^ 5 a <- 100
b <- 2 a * b list <- c(2,4,6,8,10) list
R Business Analysis ͷΠϯετʔϧ 1. ͍ΘΏΔRͷIDE (౷߹։ൃڥ)Ͱ͢ɻ RͷεΫϦϓτϑΝΠϧɺ࣮ߦconsoleɺάϥϑεϖʔεɺಡΈࠐΜ ͩσʔλͷҰཡͳͲ͕ݟ͘͢ஔ͞Ε·͢ 2.
R studioͷΠϯετʔϥΛμϯϩʔυ https://www.rstudio.com/products/rstudio/download/ 3. μϯϩʔυͨ͠ΠϯετʔϥΛ։͍ͯΠϯετʔϧ 4. ΞϓϦέʔγϣϯϑΥϧμʹʮR studioʯ͕͋ΕΠϯετʔϧྃ
R Business Analysis
R Business Analysis • ίʔσΟϯάதͷೖྗิॿ͕ڧ͍ • άϥϑͷΞτϓοτ͕͍͢͠ • ΤσΟλͷจࣈ৭ͱഎܠΛฤू͠ ͯɺݟ͍͢ઃఆʹͰ͖Δ
• ෳͷεΫϦϓτϑΝΠϧΛλϒͰ ։͍͓͚ͯΔ • ύοέʔδϦετͷӾཡσΟϨΫ τϦϑΝΠϧͷ֬ೝͳͲ͕Ͱ͖Δ ͷϝϦοτ
R Business Analysis άϥϑΛॻ͍ͯΈΑ͏ʂ x <- 1:10 y <- 1:10
plot(x, y) # x࣠Λ10͔Β1ͷฒͼํʹ͢Δ plot(x, y, xlim=c(10,1))