Back
I am facing an error after performing this syntax:
This is the error:
Error in file(file, "rt") : cannot open the connection
file(file, "rt")read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, comment.char = comment.char, ...)read.csv(file[i], header = T, sep = ",")datamean3("file", "data", 1:10)In addition: Warning message:In file(file, "rt") : cannot open file './file.csv': No such file or directory
file(file, "rt")
read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, comment.char = comment.char, ...)
read.csv(file[i], header = T, sep = ",")
datamean3("file", "data", 1:10)
In addition: Warning message:In file(file, "rt") : cannot open file './file.csv': No such file or directory
Just change your directory <- ("./file") to directory <- ("./file/")
so just don't make "file" folder you are working on.
31k questions
32.8k answers
501 comments
693 users