Error when uploading a file

Soo, I am trying to upload a dataset and even with the first error, it should still work. When I put my name for the file in the code, it doesn't work.

Error in load("H:\Personal\data.csv") :
bad restore file magic number (file may be corrupted) -- no data loaded
In addition: Warning message:
file ‘data.csv’ has magic number 'order'
Use of save versions prior to 2 is deprecated
Error: object 'DATA' not found

first line should say "data.csv"

for csv data load() function is incorrect.
it would be correct to use a read.csv type function or read.table (as you do but needs the seperator as you know). however for your attempt at using read.table you did not use R's assignment operator which is <- rather you did <= , please try again with <-

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.