- R Data Visualization Recipes
- Vitor Bianchi Lanzetta
- 59字
- 2021-07-02 23:33:32
How to do it...
We proceed with the recipe as follows:
- Use an if statement to check and install the car package:
> if(!require(car)){ install.packages('car') }
- Load the package and use ? to call for data set documentation:
> library(car)
> ?Salaries
- Check both the first row and the data set object type:
> head(Salaries)
> class(Salaries)