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