Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
5 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.

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94k users

Browse Categories

...