On Thu, 15 Jun 2006, Gabor Grothendieck wrote:
> Currently, four formats of data files are supported:
>
>1. files ending '.R' or '.r' are 'source()'d in, with the R
>working directory changed temporarily to the directory
>containing the respective file.
>
>2. files ending
I don't think the poster is confused. He is referring to the data()
command and
that one uses semicolon, not comma, and the poster is wondering what the
motivation is for that choice. From ?data
Currently, four formats of data files are supported:
1. files ending '.R' or '.r' are
Ben,
you confused read.csv and read.csv2. Separator in read.csv is ",", while
it is ";" in read.csv2. This is due to use of different decimal symbols
in some european languages - mine is one of them and I really hate
this. So the situation is:
decimal separator
english
just out of curiosity:
why is the default behavior in data() for reading in .csv files
to use sep=";" (semicolon rather than comma)? is this a historical
artifact of some sort, or is there other logic to it? It caught
me by surprise since I was expecting it to be sep="," as in
read.csv() ..