thanosqq
thanosqq

Reputation: 1

How to import messy data in R?

How to import this data in R ???is so messy...I dont know if must first cleaning and then import..i dont know what to do....in the first line is the names of columns.

https://archive.ics.uci.edu/ml/machine-learning-databases/wine-quality/

sample data

Upvotes: 0

Views: 308

Answers (1)

SmitM
SmitM

Reputation: 1376

It is not messy but very clean. The file is a comma separated values file (although the delimiter seems to be a semi-colon). You can use read.delim for this:

df <- read.delim("winequality-red.csv", sep = ";")

Make sure that the file is stored in the working directory. You can check the working directory by using getwd() and change it by setwd()

Upvotes: 3

Related Questions