There are multiple methods to read a csv file in R studio. We have explained few easy methods in this article.

NOTE – > No additional package is required for this .

METHOD-1: (Read the file directly form from folder)

##Make sure the we use double back slash

DF=read.csv("C:\\Users\\path\\file_name.csv")

METHOD 2 : (first set the directory(folder) and then file)

In this method, First we set the directory and load the files one by one.  This method is very useful, when requirement is to load multiple files from a single directory/folder.

setwd("C:/users/path/")
DF=read.csv(File= 'file_name_1.csv')
DF=read.csv(File= 'file_name_2.csv')
DF=read.csv(File= 'file_name_3.csv')