Importing headcount and turnover data
Since employee information is confidential, you will be working with data that was artificially generated (keeping the distribution as close as possible to real-world data) for learning purposes.
In this exercise, you will work with the org
dataset which contains information for all employees who were working or who left the organization during the year 2014.
This exercise is part of the course
HR Analytics: Predicting Employee Churn in R
Exercise instructions
- Load the
readr
anddplyr
packages. - Import
'org.csv'
usingread_csv()
. - Use
glimpse()
to view the structure oforg
.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Load the readr and dplyr packages
___
___
# Import the org data
org <- ___
# Check the structure of org dataset, the dplyr way
___