I saved this data … http://archive.ics.uci.edu/ml/machine-learning-databases/wine/wine.data
as a .csv I want to change the column headings to the ones I wrote in my code as follows…..
wine<-read.table("/Users/Sania/Desktop/wine.csv", header=TRUE, sep=",",col.names="alcohol","malic acid", "ash", "Alcalinity of ash", "Magnesium", "Total phenols", "Flavanoids", "Nonflavanoid phenols", "Proanthocyanins", "Color intensity", "Hue","OD280/OD315 of diluted wines", "Proline") but it gives me this message.... Error in readLines(file, skip) : invalid 'n' argument
In addition: Warning message:
In readLines(file, skip) : NAs introduced by coercion am I supposed to use the readline function instead?