Back

Explore Courses Blog Tutorials Interview Questions
0 votes
4 views
in R Programming by (7.3k points)
Can anyone tell me how to read CSV file in R programming?

1 Answer

0 votes
by (41.4k points)

There are two methods to read a CSV file in R, and they are as follows:

Method 1:

1. Open RStudio and go to the Workspace tab

2. Click on Import Dataset

3. Then, click on From text file

4. Once a window pops up, find the location of the CSV file and click on it

5. Then, you will get an option for importing the CSV file

Method 2:

1. Use the read.csv function to import the CSV file in RStudio

2. Write the address of the CSV file stored in the system

3. After that, insert the name of the file with the .csv extension and run the query, and your dataset will be imported

If you are looking for an online course to learn R programming, check out this R Programming Online Course by Intellipaat.

Browse Categories

...