Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
6 views
in R Programming by (10.2k points)
edited by

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

1 Answer

0 votes
by (2k points)
edited by

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

Browse Categories

...