SlideShare a Scribd company logo
R
3
R R Studio
2
1 2
R
R
https://www.r-project.org/
R
R (Mac
Widows Mac OS
R (Win
Widows Mac OS
USB
R studio R
https://www.rstudio.com/
R studio R
R studio R
Tools
→
Global Option
R studio R
R studio
Source
Console
Environment
File Plot
R
” # ”
#
R
R script
ctrl + enter R enter
console
5 + 5
10 * 3
plot(1:10) plot(1:100)
?summary
read.csv error
install.packages("readxl")
library(readxl)
x <-
read_excel("/Users/omotetakanori/Desktop/test_mac/class
Data.xlsx")
readxl install (library
x excel
head(x)
x 6
head (x,10)
R Data Analysis/Rを使った人事データ分析入門
tests %>% select(Japanese, Mathematics) %>% cor()
tests %>% select(Japanese:Mathematics) %>% cor()
#Data
tests <- read_excel("rhrData.xlsx")
library(dplyr)
#Data
tests %>% head(3)
#
library(ggplot2)
tests %>% ggplot(aes(x=Expense,y=Sales)) + geom_point() + geom_smooth(method =
"lm")
#
lm.Sales.Expense <- lm(Sales~Expense,data = tests)
#
summary(lm.Sales.Expense)
Call:
lm(formula = Sales ~ Expense, data = tests)
Residuals:
Min 1Q Median 3Q Max
-1558.1 -514.3 163.8 366.9 1300.4
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 1260.693 418.680 3.011 0.00750 **
Expense 7.073 2.117 3.340 0.00364 **
---
Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1
Residual standard error: 709.3 on 18 degrees of freedom
Multiple R-squared: 0.3827, Adjusted R-squared: 0.3484
F-statistic: 11.16 on 1 and 18 DF, p-value: 0.003642
0
0
0
( )
#
library(readxl)
tokei <- read_excel("TokeiSeminar.xlsx")
lm.tokeiseminar <- lm(FutureSales ~
Sex+ Academic + Interview + IQ + MBTI + Abroad + Leadership + Athelete, data = tokei)
summary(lm.tokeiseminar)
1. Data
2. 2000 1
3.
4. 2000
mutate
Environment
#Data
tests <- read_excel("rhrData.xlsx")
#if sales 2000>=
#1.
tests <- tests %>% mutate(IsSalesOver2000= Sales >= 2000)
predict xlab ylab
1. Data
2. 2000 1
3.
4. 2000
# 2000
pred.Salesover2000 <- predict (glm.Sales.NoCl.Ex,data = tests.over2000)
plot(pred.Salesover2000, xlab = "SalesName", ylab = "2000overProb")
1 2
R Data Analysis/Rを使った人事データ分析入門
0
0
50
100
150
200
250
0 5 10 15 20
Sales
58V N 96 3
N 1 S N S 9 5
4 2
(p)
p
-1.5
-1
-0.5
0
0.5
1
1.5
2
-2.5 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2
# (PrincipalComponentAnalysis)
library(dplyr)
#
tests<- read_excel('classData.xlsx')
testsPr <- tests %>%
select(English:Mathematics)
rownames(testsPr) <-tests$Name
testsPr <- prcomp(testsPr)
testsPr %>% biplot()
R Data Analysis/Rを使った人事データ分析入門
R Data Analysis/Rを使った人事データ分析入門
R Data Analysis/Rを使った人事データ分析入門
k-means
1
k
5
2
k
3
k
4
k
5
2
R Data Analysis/Rを使った人事データ分析入門

More Related Content

PDF
When RegEx is not enough
PPTX
Naughty And Nice Bash Features
PDF
FSB: TreeWalker - SECCON 2015 Online CTF
PPT
Repl internals
PDF
JIP Pipeline System Introduction
PPTX
Visualizing ORACLE performance data with R @ #C16LV
PDF
PHP 机智问答
PPTX
Beyond Lists - Functional Kats Conf Dublin 2015
When RegEx is not enough
Naughty And Nice Bash Features
FSB: TreeWalker - SECCON 2015 Online CTF
Repl internals
JIP Pipeline System Introduction
Visualizing ORACLE performance data with R @ #C16LV
PHP 机智问答
Beyond Lists - Functional Kats Conf Dublin 2015

What's hot (20)

PDF
The Art of Command Line (2021)
PPTX
Redis Developers Day 2015 - Secondary Indexes and State of Lua
PDF
Gogo shell
KEY
My life as a beekeeper
PDF
Chunked, dplyr for large text files
KEY
Stackful
PDF
Leveraging Probabilistic Data Structures for Real Time Analytics with Redis M...
KEY
Perl on Amazon Elastic MapReduce
PDF
D3 data, user, interaction
PDF
Docopt, beautiful command-line options for R, user2014
PPTX
Developing a Redis Module - Hackathon Kickoff
PDF
Golang勉強会
PPTX
Using Grafana with InfluxDB 2.0 and Flux Lang by Jacob Lisi
PPTX
Data visualization in python/Django
KEY
XpUg Coding Dojo: KataYahtzee in Ocp way
PDF
node ffi
PDF
Data recovery using pg_filedump
PDF
ECMA Script
KEY
Agile Iphone Development
PPTX
Tuga IT 2018 Summer Edition - The Future of C#
The Art of Command Line (2021)
Redis Developers Day 2015 - Secondary Indexes and State of Lua
Gogo shell
My life as a beekeeper
Chunked, dplyr for large text files
Stackful
Leveraging Probabilistic Data Structures for Real Time Analytics with Redis M...
Perl on Amazon Elastic MapReduce
D3 data, user, interaction
Docopt, beautiful command-line options for R, user2014
Developing a Redis Module - Hackathon Kickoff
Golang勉強会
Using Grafana with InfluxDB 2.0 and Flux Lang by Jacob Lisi
Data visualization in python/Django
XpUg Coding Dojo: KataYahtzee in Ocp way
node ffi
Data recovery using pg_filedump
ECMA Script
Agile Iphone Development
Tuga IT 2018 Summer Edition - The Future of C#
Ad

Similar to R Data Analysis/Rを使った人事データ分析入門 (20)

PPT
Lecture1_R Programming Introduction1.ppt
PPTX
Workshop presentation hands on r programming
PPT
Lecture1_R.ppt
PPT
Lecture1 r
PPT
Modeling in R Programming Language for Beginers.ppt
PPT
Lecture1_R.ppt
PDF
Lecture1_R.pdf
PPT
R_Language_study_forstudents_R_Material.ppt
PPT
Brief introduction to R Lecturenotes1_R .ppt
PPTX
Reproducible Computational Research in R
ODP
IIUG 2016 Gathering Informix data into R
PDF
Basics of R programming for analytics [Autosaved] (1).pdf
PPTX
Lrz kurse: r visualisation
PPT
Hands on data science with r.pptx
PDF
RDataMining slides-r-programming
PPT
Best corporate-r-programming-training-in-mumbai
PDF
Introduction to source{d} Engine and source{d} Lookout
PDF
R Introduction
PDF
R Programming: Importing Data In R
PDF
R Traning-Session-I 21-23 May 2025 Updated Alpha.pdf
Lecture1_R Programming Introduction1.ppt
Workshop presentation hands on r programming
Lecture1_R.ppt
Lecture1 r
Modeling in R Programming Language for Beginers.ppt
Lecture1_R.ppt
Lecture1_R.pdf
R_Language_study_forstudents_R_Material.ppt
Brief introduction to R Lecturenotes1_R .ppt
Reproducible Computational Research in R
IIUG 2016 Gathering Informix data into R
Basics of R programming for analytics [Autosaved] (1).pdf
Lrz kurse: r visualisation
Hands on data science with r.pptx
RDataMining slides-r-programming
Best corporate-r-programming-training-in-mumbai
Introduction to source{d} Engine and source{d} Lookout
R Introduction
R Programming: Importing Data In R
R Traning-Session-I 21-23 May 2025 Updated Alpha.pdf
Ad

Recently uploaded (20)

PPT
Miokarditis (Inflamasi pada Otot Jantung)
PPTX
Computer network topology notes for revision
PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PPTX
Introduction to machine learning and Linear Models
PDF
Introduction to Data Science and Data Analysis
PPTX
IB Computer Science - Internal Assessment.pptx
PPTX
Introduction to Knowledge Engineering Part 1
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PDF
[EN] Industrial Machine Downtime Prediction
PPTX
1_Introduction to advance data techniques.pptx
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PDF
Lecture1 pattern recognition............
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PDF
.pdf is not working space design for the following data for the following dat...
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PDF
Business Analytics and business intelligence.pdf
PPTX
SAP 2 completion done . PRESENTATION.pptx
PDF
Clinical guidelines as a resource for EBP(1).pdf
Miokarditis (Inflamasi pada Otot Jantung)
Computer network topology notes for revision
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
Introduction to machine learning and Linear Models
Introduction to Data Science and Data Analysis
IB Computer Science - Internal Assessment.pptx
Introduction to Knowledge Engineering Part 1
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
STUDY DESIGN details- Lt Col Maksud (21).pptx
[EN] Industrial Machine Downtime Prediction
1_Introduction to advance data techniques.pptx
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
Lecture1 pattern recognition............
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
.pdf is not working space design for the following data for the following dat...
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
Business Analytics and business intelligence.pdf
SAP 2 completion done . PRESENTATION.pptx
Clinical guidelines as a resource for EBP(1).pdf

R Data Analysis/Rを使った人事データ分析入門