9. Data types supported by R
1. Logical
2. Numeric- Integer
3. Character
4. Double
5. Complex
6. Raw
Class() and typeof() function can be reveal the data type
16. Importing Data
library(readr)
# import data from a comma delimited file
Salaries <- read_csv("salaries.csv")
# import data from a tab delimited file
Salaries <- read_tsv("salaries.txt")
17. Read data from Excel
library(readxl)
# import data from an Excel workbook
Salaries <- read_excel("salaries.xlsx", sheet=1)