Repository for Analysis of data hosted on UCI Machine Learning Archives - rupakc/UCI-Data-Analysis.
I am new to UCI Machine Learning Repository datasets
I have tried to download the data into R, but I can not do it.
Could someone please help with this?
Note, I am using MacBook Pro.
jeza
jezajeza
1 Answer
You need to look at the data first to understand its arrangement and whether there is any metadata like a header. Your browser should be sufficient for this. The first two lines of the
ionosphere.data
file are:So, no header, but it is a CSV file. Can use either
read.table
with sep=',' or read.csv
with header=FALSE. You might (incorrectly as did I) assume the column names are in the other file, but this is a machine learning task where there are no labels, so the read.*
functions will assign generic names to the columns of the dataframe created.You copy the link address with your browser to the datafile, then paste it into
read.table
in quotes and add the separator argument (since read.table
's default separator values (whitespace) does not include commas:42-42-