The readr package provides functions for importing delimited text files into R data frames.
library(readr)# import data from a comma delimited fileSalaries <-read_csv("data/salaries.csv")# import data from a tab delimited fileSalaries <-read_tsv("data/salaries.txt")