r read.csv code example
Example 1: read csv in r
data <- read.csv("input.csv")
print(data)
Example 2: read csv in r
library(readr)
data <- read_csv("input.csv")
Example 3: r studio parse csv
# Import the data and look at the first six rows
carSpeeds <- read.csv(file = 'data/car-speeds.csv')
head(carSpeeds)