How to Import CSV File in R studio | Data Science Machine Learning | r TUTORIAL

Опубликовано: 17 Май 2026
на канале: Technical Surani
6,282
74

How to Import CSV File in R studio | Data Science Machine Learning | r TUTORIAL

#how_to_import_csv_file_in_R_studio

#Rstudio #R #machineleaning #Rtuturoal #csv

There are two methods to import #csv file in #R Studio. I will show you two methods

1) Import CSV using command line
Sept -1 Check working Directory by typing below line
get()

Sep -2 Set output working directory path by typing following line
setwd("C:/Users/Mayur/Documents/RT")

Step 03 create new vector srt by typing below line

slt = read.csv("C:/Users/Mayur/Documents/RT/slr.csv")
If you get error in creating above vector , please put double back slash instead of single back slash and ensure to give file extension name in end as mentioned above. It should work

Method 02

Step 01- Click on Import dataset in right side of environment TAB

Step 02 - Click on second option from text(readr) and hit next

Step 03- It will show new window , click on browse and select file you want to open it

Step 04- In bottom right side, you will see code window, copy that code and hit import buttor

Step 05 - Hurrey. You have successfully imported csv file in R studio


I am Mr. Surani. I will teach you different technical hacks to horn up your expertise on R Studio, Python ,MS Excel. Photoshop Tutorials, Adobe Premiere m Adobe After effects , MS Words, Power Points , Windows Hacks etc

Please, Like , Share and hit bell icon in Channel. Thank you