Resources for Lab 2

Practice:

  • Download the employees.xlsx.
  • Create an R Project where to analyse the employees.xlsx dataset and move the xlsx file within the project directory.
  • Get the path to the data using the here() function.
  • Import the dataset in R with the read_xlsx() function.
  • How many observations are collected in the dataset? Use the dim() function.

  • What’s the average salary in the company? Use either the function mean()or summary()