Loading a cci file in R

46 Views Asked by At

Situation: I want to load a .cci file in R like this:

data <- read.table("data.cci", header = T, dec = ".")

I also tried read.csv/read.csv2 - but I always get this error:

No such file or directory
Error in file(file, "rt") : cannot open the connection

Thanks for considering this question.

P.S. the WD is fine

1

There are 1 best solutions below

2
Selcuk Akbas On

I guess the problem is your file and working directory is in different folder. You can get wd with

getwd()

and than write the correct location like. (pay attention to " / " not " \ " )

data <- read.table("C:/files/data.cci", header = T, dec = ".")