+1 vote
3 views
in R Programming by (7.9k 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 !


Categories

...