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
580
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
670
ggplot2の導入とヒストグラム作成
hujuu
0
500
Other Decks in Business
See All in Business
採用資料
daichihayashi
0
270
インキュデータ会社紹介資料
okitsu
3
32k
採用ピッチ資料_CPAエクセレントパートナーズ株式会社_24-11
cparecruit
PRO
0
100
バイセルのものさし(Ver. 1.1)
buyselltechnologies
0
200
HERBEST_about service
beat
0
650
요즘 팀장 생존법 (SLIT-CON)
lemonadegt
0
190
20241027.jjug_ccc_creditsaison.pdf
lalha
4
2.5k
STRACT, Inc. Company Deck
stract
0
1.4k
HashPort Group Company Deck
hashport
0
10k
IT 未経験者をVue.js で開発できる IT コンサルタントに育てあげる秘訣/ Future's New Employee Training
yut0naga1_fa
0
310
サーキュレーション会社説明資料
circulation
2
18k
定期券WEB予約システムの導入
tokyo_metropolitan_gov_digital_hr
0
330
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
229
18k
The Invisible Side of Design
smashingmag
298
50k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
It's Worth the Effort
3n
183
27k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
44
2.2k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
What's in a price? How to price your products and services
michaelherold
243
12k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Side Projects
sachag
452
42k
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))