[Rd] On read.csv and write.csv

peter dalgaard pd@|gd @end|ng |rom gm@||@com
Fri Jul 9 10:00:56 CEST 2021


?read.csv does actually have

row.names: a vector of row names.  This can be a vector giving the
          actual row names, or a single number giving the column of the
          table which contains the row names, or character string
          giving the name of the table column containing the row names.

-pd

> On 5 Jul 2021, at 12:37 , Stephen Ellison <S.Ellison using LGCGroup.com> wrote:
> 
>> From: Simon Urbanek <simon.urbanek using R-project.org>
>>     By default there is no column name for a column of row names.  
> <snip> 
>>     spreadsheets.  Note that such CSV files can be read in R by
>> 
>>       read.csv(file = "<filename>", row.names = 1)
> AHA!! Many thanks. 
> I see this clue is in ?write.table, though; I was looking for help on reading CSVs in ?read.csv etc. 
> <sigh>
> 
> Thanks to all for your time answering this; much appreciated.
> 
> S
> 
> 
> *******************************************************************
> This email and any attachments are confidential. Any u...{{dropped:21}}



More information about the R-devel mailing list