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
Attracting a Younger Generation to Fundraising Events
auctria
PRO
0
100
株式会社gecogeco 会社紹介資料
gecogeco
2
2.5k
DNX Ventures Japan|Introduction Deck
natsumidnx
0
950
2024年5月採用広報資料.pdf
gw_recruit
0
740
フレームワークを生み出すメタフレームワークという考え方 -適応型から生成型へ- #RSGT2025 / From adaptive to generative
kyonmm
PRO
2
2.3k
Lablup at CES 2024: 우리의 CES 활용법
inureyes
PRO
0
210
ABCash会社紹介資料「Culture Deck2025」
abcash_recruit
0
10k
IT業界向けグループワーク「THEクリティカルパス カード版」
chibanba1982
PRO
0
140
Sales Marker Culture Book(English)
salesmarker
PRO
1
3.4k
コンセンサスゲーム「無人島での出来事」
chibanba1982
PRO
0
500
地図作成ゲーム「ジグソータウン」
chibanba1982
PRO
0
250
ARI会社説明
arisaiyou
1
6k
Featured
See All Featured
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
960
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
3
240
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.1k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
A better future with KSS
kneath
238
17k
Code Review Best Practice
trishagee
65
17k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
6
500
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
3
180
Statistics for Hackers
jakevdp
797
220k
Designing on Purpose - Digital PM Summit 2013
jponch
116
7.1k
Side Projects
sachag
452
42k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.4k
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))