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
ポートフォリオEC「ENRAI」_概要資料
booklista_nakaya
1
940
エンジニア向け会社紹介資料/株式会社PLAY
play_inc
0
5.1k
Timeless Principles: Google’s Constant Journey Through Past, Present, and Future
chapter42
0
450
ブレインパッドXaaSユニット紹介資料(キャリア採用向けweb公開版 )
brainpadpr
0
14k
merpay-Overview
mercari_inc
6
150k
採用ピッチブック
macloud
3
59k
新卒エンジニア向け dely会社説明資料 / New Grad Engineers
delyinc
0
720
【エンジニア採用】BuySell Technologies会社説明資料
buyselltechnologies
1
51k
FABRIC TOKYO会社紹介資料 / We are hiring(2024年10月23日更新)
yuichirom
31
270k
データガバナンスチームの結成で得た学び / Insights from the Data Governance Team
auto_yak_ant
0
920
VISASQ: ABOUT US
eikohashiba
15
460k
Theoria technologies:About Us
theoriatec2024
1
960
Featured
See All Featured
Writing Fast Ruby
sferik
626
61k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
3
370
Rails Girls Zürich Keynote
gr2m
93
13k
We Have a Design System, Now What?
morganepeng
50
7.2k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Faster Mobile Websites
deanohume
304
30k
Facilitating Awesome Meetings
lara
49
6k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Building Your Own Lightsaber
phodgson
102
6.1k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Building Adaptive Systems
keathley
38
2.2k
[RailsConf 2023] Rails as a piece of cake
palkan
51
4.9k
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))