error in importing a file please help!

R programming language resources Forums Data manipulation error in importing a file please help!

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #440
    hope28
    Member

    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?

    #442
    hope28
    Member

    ok i got it, no need to reply 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Scroll to top
Privacy Policy