[R] data() function does not load a csv file in 1.3.0

Jan_Svatos@eurotel.cz Jan_Svatos at eurotel.cz
Fri Jun 29 11:23:01 CEST 2001



Dear List,

I upgraded to R 1.3.0 yesterday,
but now I am not able to read data in csv format by the data() function.
The structure of my csv files is the same as it was when I used R 1.2.3.
and it meets the requirements (header=TRUE, sep=";").
The R data files are loaded correctly.

In NEWS I have found that
"read.table() now uses a single pass through the dataset"
but I expect that this does not cause my problem.

The file usaged.csv located in R_HOME\base\data looks like:

"Direction";"TimeKey";"Usage";"Calls";"HotN"
1;425;91375;645;8080
1;426;104334;640;22220
1;427;64440;376;16400


It is in the search path:
> search()
[1] ".GlobalEnv"   "Autoloads"    "package:base"

> searchpaths()
[1] ".GlobalEnv"                        "Autoloads"
[3] "C:/PROGRA~1/R/rw1030/library/base"


R says:
> data(usaged)
Warning message:
Data set `usaged' not found in: data(usaged)


Even read.csv2 does not read the table:

> read.csv2(usaged)
Error in read.table(file = file, header = header, sep = sep, quote = quote,
:
        Object "usaged" not found
> read.csv2(usaged.csv)
Error in read.table(file = file, header = header, sep = sep, quote = quote,
:
        Object "usaged.csv" not found



What I am doing wrong, please?

Thanks in advance,
Jan


-------------------------------------------------
/- Jan Svatos,              Sokolovska 855/225 -/
/- Data Analyst,            Prague 9           -/
/- Eurotel Praha            190 00             -/
/- jan_svatos at eurotel.cz    Czechia            -/
-------------------------------------------------






-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list