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
TokyoR #106 Beginners' Session1
Search
yu_sekiya
June 09, 2023
Programming
0
270
TokyoR #106 Beginners' Session1
TokyoR #106の初心者セッション1の資料です。
内容は、R/RStudioの導入〜環境構築についてです。
yu_sekiya
June 09, 2023
Tweet
Share
More Decks by yu_sekiya
See All by yu_sekiya
TokyoR#114 shiny+DT超(ザックリ)入門
kotatyamtema
0
70
TokyoR#113 bignners session2 Visualization
kotatyamtema
0
66
TokyoR #112 Beginners' Session2 data handing
kotatyamtema
0
73
TokyoR #111 Beginners' Session1 data handing
kotatyamtema
0
49
TokyoR#95 bignners session2 Visualization
kotatyamtema
0
45
TokyoR#102 bignners session2
kotatyamtema
0
54
TokyoR #110 Beginners' Session1
kotatyamtema
0
180
TokyoR #108 Beginners' Session1
kotatyamtema
0
190
初心者セッション1 #105
kotatyamtema
0
310
Other Decks in Programming
See All in Programming
카카오페이는 어떻게 수천만 결제를 처리할까? 우아한 결제 분산락 노하우
kakao
PRO
0
110
色々なIaCツールを実際に触って比較してみる
iriikeita
0
330
A Journey of Contribution and Collaboration in Open Source
ivargrimstad
0
890
2024/11/8 関西Kaggler会 2024 #3 / Kaggle Kernel で Gemma 2 × vLLM を動かす。
kohecchi
5
910
as(型アサーション)を書く前にできること
marokanatani
9
2.6k
弊社の「意識チョット低いアーキテクチャ」10選
texmeijin
5
24k
見せてあげますよ、「本物のLaravel批判」ってやつを。
77web
7
7.7k
PHP でアセンブリ言語のように書く技術
memory1994
PRO
1
170
Arm移行タイムアタック
qnighy
0
310
Ethereum_.pdf
nekomatu
0
460
イベント駆動で成長して委員会
happymana
1
320
みんなでプロポーザルを書いてみた
yuriko1211
0
260
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
16
2.1k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
Designing Experiences People Love
moore
138
23k
Bash Introduction
62gerente
608
210k
10 Git Anti Patterns You Should be Aware of
lemiorhan
654
59k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
Embracing the Ebb and Flow
colly
84
4.5k
Scaling GitHub
holman
458
140k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
720
Transcript
ॳ৺ऀηογϣϯ $POpHVSJOH3&OWJSPONFOU 5PLZP3 !LPUBUZBNUFNB
ࣗݾհ 5XJUUFS*%!LPUBUZBNUFNB େֶͰͷઐߦಈੜଶֶ ཱҊdั֫d࣮ݧdੳ·ͰϫϯΦϖ ࠓ·Ͱ٬ઌ΅ͬͪੳˠΞύϨϧ௨ൢձࣾ ݱࡏҩྍݕࠪձࣾ 3ྺա͔͗ͨʁӬԕͷॳ৺ऀ ۙگʹҰңΧϝϥΛͷΉӋʹ ٻΉɿΔؾεΠον
త 3Λ͏ͨΊͷڥઃఆ͕ Ͱ͖ΔΑ͏ʹ͢Δ 3Λշదʹ͏ઃఆ͕ Ͱ͖ΔΑ͏ʹ͢Δ
ϓϩάϥϜݴޠ*%&ͱ 334UVEJPͱ ɹΠϯετʔϧํ๏ 3ͷڥͱσ ΟϨΫτϦͷؔ ઈରύεͱ૬ରύε
QSPKFDUͱ σʔλίʔυͷཧͱ%JSFDUPSZͷߏ 3ͷػೳ֦ு ɹQBDLBHFͷΠϯετʔϧͱཧ ύοέʔδʹ͋Δσʔλͷݺͼग़͠ .&/6
ϓϩάϥϜݴޠ*%&ͱ ϓϩάϥϜݴޠͱɿ ίϯϐϡʔλʹҙͷಈ࡞Λͤ͞Δ໋ྩΛॻͨ͘Ίͷݴޠ &Y3 1ZUIPO 3VCZFUD *%& ౷߹։ൃڥ ͱɿ ϓϩάϥϜΛͬͯ։ൃ͕͍͢͠Α͏ʹ࡞ΒΕͨڥ
&Y34UVEJP +VQJUFS/PUFCPPLFUD *%& ౷߹։ൃڥ ϓϩάϥϜݴޠ
334UVEJPͱ 3ͱɿ ɹ౷ܭֶͷͨΊʹಛԽͨ͠ϓϩάϥϜ ɹˠσʔλಡΈࠐΈʙղੳʙΞϓϦ࡞·ͰҰ௨Γ؆୯ʹͰ͖Δ 34UVEJPͱɿ ɹ1PTJU͕ࣾఏڙ͢Δ3ʹಛԽͨ͠*%& ౷߹։ൃڥ ɹ3NBSLEPXO4IJOZɺ(JUɺ%8)ͱͷ࿈ܞ͕εϜʔζʹ ɹίʔσ
ΟϯάதͷαδΣετิػೳ͕ॆ࣮ 34UVEJP 3
334UVEJPͱ 3ຊମͷΠϯετʔϧɿ $3"/ $PNQSFIFOTJWF3"SDIJWF/FUXPSL ɾ$3"/ͱɿެࣜͷຊମٴͼύοέʔδ৴༻8FCαΠτ ɹIUUQTDSBOSQSPKFDUPSHɹ ɾ.BDڥͷ߹IPNFCSFXͰΠϯετʔϧՄ ɹIPNFCSFXͷ)1 IUUQTCSFXTIJOEFY@KB
34UVEJPͷΠϯετʔϧɿ ɾ34UVEJPͷ)1͔ΒΠϯετʔϥΛμϯϩʔυ ɹ IUUQTQPTJUDPQSPEVDUTPQFOTPVSDFSTUVEJP ɾ.BDڥͷ߹IPNFCSFXDBTLͰΠϯετʔϧՄ ҙɿ3ຊମˠ34UVEJPͷॱʹΠϯετʔϧ͢Δ͜ͱ
334UVEJPͱ εΫϦϓτΛॻ͘ ࣮ࢪ݁Ռͷग़ྗ ڥʹ͋ΔσʔλͳͲΛදࣔ ˠλϒͰදࣔΛΓସ͑ ࡞ۀϑΥϧμʹ͋Δ ϑΝΠϧΛදࣔ ˠλϒͰදࣔΛΓସ͑ ࠓͷQSPKFDU໊Λදࣔ 34UVEJPͷΠϝʔδ
3ͷڥͱσΟϨΫτϦͷؔ 1$ϝϞϦͷҰ෦ΛUFNQPSBSZͳϝϞϦͱͯ͠༻ ˠ3Λऴྃ͢Δͱফ͑Δ ˠ3Ͱ࣮ߦͨ݁͠ՌΛ3ऴྃޙอ͢ΔʹSETDTWͳͲͷ ɹ1$্ͷΦϒδΣΫτͱͯ͠อଘ͓ͯ͘͜͠ͱ͕ඞཁ ΦϒδΣΫτͷอଘઌʹҙͷσΟϨΫτϦΛ ࡞ۀ༻σ ΟϨΫτϦ 8PSLJOH%JSFDUPSZ8% ͱͯ͠ඥ͚
ˠ8%͕εΫϦϓτϑΝΠϧͷอଘσʔλͷ૬ରύεͷى ˠݱࡏͷ8%zHFUXE zͰ֬ೝ
3ڥͱ8%ͷؔͷΠϝʔδ 3ͷڥͱσΟϨΫτϦͷؔ 3ڥ 1$ڥ εΫϦϓτϑΝΠϧ σʔλͳͲͷΓऔΓ ҙͷσΟϨΫτϦʢ8%ʣͱ ؔ࿈͚ 8PSLJOH%JSFDUPSZ8% ˠ૬ରύεͷى
ύεͱɿ తͷϑΥϧμϑΝΠϧͷอଘॴΛࣔ͢ॅॴͷΑ͏ͳͷ ઈରύεͱɿ ϧʔτσ ΟϨΫτϦ $% ͔Βهड़ͨ͠ύε ૬ରύεͱɿ 8PSLJOH%JSFDUPSZ 8%
Λىʹهड़ͨ͠ύε ˠ8%ΑΓઌͷύεΛॻ͖ɺͦͷલʹzzΛ͚ͭΔ ྫɿຊࠃɹ˘˘ݝɹʓʓࢢɹººொɹɾɾɾ ྫɿ$ !!!!ʝʝ3NE ྫɿʓʓࢢɹººொɹɾɾɾ ྫɿʝʝ3NE ઈରύεͱ૬ରύε
QSPKFDUͱ 3ͷQSPKFDUͱɿ σ ΟϨΫτϦͱͷඥ͚ʢ8%ʣɺ3ڥͳͲΛ·ͱΊΔΈ ˠQSPKFDUΛઃఆ͢Δ͜ͱͰղੳڥͷΓସ͕͑༰қʹ ˠෳͷղੳΛಉ࣌ʹ࣮ߦ͍ͯ͠Δͱඇৗʹศར ˠ(JUͱͷ࿈ܞ͕εϜʔζʹ 3ڥ 1$ڥ QSPKFDU
QSPKFDU
QSPKFDUͷઃఆํ๏ ৽͍͠ϑΥϧμΛ࡞ͬͯ8%ʹ͢Δ ࠓ͋ΔϑΥϧμΛ8%ʹ͢Δ ӈ্ʹ͋Δ1SPKFDUΛΫϦοΫ ˠ/FX1SPKFDUΛબ (JUIVC͔ΒΫϩʔϯͯ͘͠Δ ˎࠓճͷର֎
QSPKFDUͷઃఆํ๏ ৽͍͠ϑΥϧμΛ࡞ͬͯ8%ʹ͢Δ ࠓ͋ΔϑΥϧμΛ8%ʹ͢Δ 8%ʹ͢ΔϑΥϧμΛબ 8%ͷ໊લ QSPKFDU໊ 8%Λஔ͘ϑΥϧμΛબ ✔ ✔ QSPKFDUͰࢦఆͨ͠8%ʹ
<QSPKFDU໊3QSPK>ͱ͍͏ ϑΝΠϧ͕Ͱ͖͍ͯΕ ઃఆྃ
σʔλίʔυͷཧͱ%JSFDUPSZͷߏ QSPKFDUͷσ ΟϨΫτϦͷதΛͲ͏ߏங͢Δ͔ ˠσʔλίʔυͷཧͷ͢͠͞ͱ ɹσΟϨΫτϦͷߏ΄΅Πίʔϧ ˠϓϩδΣΫτͷछྨ͝ͱʹɺܾ·ͬͨߏʹ͢Δ Կ͕Ͳ͜ʹ͋Δͷ͔ଞͷϝϯόʔকདྷͷࣗʹ͔Γ ͘͢͢Δ
ܾ·ͬͨܗΛ४උ͓ͯ͘͠ͱ୳ͨ͠ΓΉ͜ͱ͕ݮΔ ࢀরɿ IUUQTTXDBSQFOUSZKBHJUIVCJPSOPWJDFHBQNJOEFSKB@FQJTPEFTQSPKFDU JOUSPJOEFYIUNM IUUQTRJJUBDPN4IVOUBSP@4BUPJUFNTEEEG
σʔλίʔυͷཧͱ%JSFDUPSZͷߏ QSPKFDU SBXEBUBDTW NBTUFSDTW UFTU3 UFTU3 ຊ൪3 ຊ൪3 ຊ൪3 QSPKFDU
JOQVU EBUB NBTUFS NJEEMF PVUQVU GVODUJPO 3' HMN 3' HMN ݟ͔͘͢Γ͍͢ߏͱ໊લʹ IUUQTXXXPSFJMMZDPKQCPPLT
EJSFDUPSZpMFཧͷؔ ໊ؔ ಈ࡞ HFUXE ݱࡏͷσΟϨΫτϦͷύεΛऔಘ TFUXE lQBUIz σΟϨΫτϦͷҠಈ EJSDSFBUF lQBUIOBNFz
SFDVSTJWF σΟϨΫτϦͷ࡞ MJTUpMFT lQBUIz SFDVSTJWF GVMMOBNF σΟϨΫτϦͷϑΝΠϧύεͷऔಘ pMFSFNPWF lQBUIOBNFz ϑΝΠϧͷআ pMFSFOBNF GSPN UP ϑΝΠϧ໊ͷมߋ SFDVSTJWF536&'"-4&ɺ֊ߏΛऔಘ͢Δ͔Ͳ͏͔ GVMMOBNF536&'"-4&ɺઈରύεͰऔಘ͢Δ͔Ͳ͏͔ ࢀরɿ IUUQTXXXLBSBEBHPPEOFUBOBMZUJDTSS IUUQTRJJUBDPNPLJZVLJJUFNTFCFFCGD
3ͷػೳ֦ு 3ͷػೳΛ֦ு͢ΔͨΊͷϓϩάϥϜɿQBDLBHF lQBDLBHFzΛՃ͢Δ͜ͱͰ؆୯ʹػೳ֦ு͕Ͱ͖Δ ੈքதͰ։ൃ͞Ε͍ͯͯศརͳख๏͕͙͑͢Δ σϞ࣮ߦͷͨΊͷαϯϓϧσʔλ͑Δ 3ެࣜͷQBDLBHFू $3"/
IUUQTDSBOJTNBDKQ HJUIVCʹެ։͞Ε͍ͯΔݸਓ࡞QBDLBHF ͪ͜ΒࣗݾͰ
QBDLBHFͷՃ QBDLBHFͷՃํ๏ 34UVEJPͷ1BDLBHFTλϒΛ͏ 3FQPTJUPSZ $3"/ ʹνΣοΫ Πϯετʔϧ͍ͨ͠QBDLBHF໊Λೖྗ
JOTUBMMΛԡ͢ νΣοΫΛ ֎͞ͳ͍͜ͱ
QBDLBHFͷՃ QBDLBHFͷՃํ๏ JOTUBMMQBDLBHFؔΛࣗͰॻ͘ ෳΠϯετʔϧ͢Δ࣌D ͰғΉ ґଘQBDLBHFͷ͏ͪ4VHHFTUT·ͰΠϯετʔϧ͢Δ࣌ lEFQFOEFODJTF536&zΛՃ
&YBNQMF JOTUBMMQBLDBHFT D lSFBESz lEBUBUBCMFz EFQFOEFODJFT536& ࢀর IUUQTTUBUTCJPQBQZSVTKQSCBTJDQBDLBHFIUNM
QBDLBHFͷݺͼग़͠ ͏࣌ʹlMJCSBSZ zPSlSFRVJSF zͰڥʹݺͼग़͢ MJCSBSZ EQMZS PSSFRVJSF EQMZS Կ͕ҧ͏͔ʁ
QBDLBHF͕Πϯετʔϧ͞Ε͍ͯͳ͔ͬͨ߹ͷڍಈɹ ɾMJCSBSZ QBDLHFͳ͍ΑͱΤϥʔग़ͯ͠ऴྃɹ ࣮MJCSBSZ MPHJDBMSFUVSO536& ͩͱ SFRVJSF ͱಉ͡ڍಈ ɾSFRVJSF QBDLBHF͕͋Δͱz536&zɺͳ͍ͱl'"-4&zΛฦ͢ ࢀর IUUQTTUBDLPWFSqPXDPNRVFTUJPOTXIBUJTUIF EJGGFSFODFCFUXFFOSFRVJSFBOEMJCSBSZ
QBMNFSQFOHVJOTύοέʔδ͔ΒlQFOHVJOTzσʔλΛݺͼग़͢ IUUQTBMMJTPOIPSTUHJUIVCJPQBMNFSQFOHVJOT ## packageͷΠϯετʔϧ install.packages(palmerpenguins, dependencies = TRUE)) ## packageͷݺͼग़͠
library(palmerpenguins) ύοέʔδʹ͋Δσʔλͷݺͼग़͠ "SUXPSLCZ!BMMJTPO@IPSTU
QSPKFDUQBDLBHFͳͲղੳڥΛշదʹ͢Δํ๏͕ ͍Ζ͍Ζ͋Γ·͢ɻ ࣗͳΓͷӡ༻ํ๏ͱڥઃఆΛ͏·͘Έ߹Θͤ ͯշదͳ3ੜ׆Λա͍ͯͩ͘͝͠͞ɻ 3ͷ͍ํʹࠔͬͨΒʜ IFMQ Λ͏ $3"/ͷެࣜQEGΛಡΉ
SXBLBMBOHʹ࣭͢Δ HPPHMFઌੜͷ͓ੈʹͳΔ ࠷ޙʹ &/+0: