?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.elli...@lgcgroup.com> wrote:
> 
>> From: Simon Urbanek <simon.urba...@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}}

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to