[R] Import Data from Excel
Bert Gunter
gunter.berton at gene.com
Wed Aug 15 23:18:32 CEST 2012
Hannah:
1. First of all, they are column names, not row names.
2. Second, no, you cannot fix it. All columns in a data frame *must*
have names, and if none are obtained from the "import," the defaults
you see will be provided.
See ?data.frame for details of how columns are named.
Columns of data of the same mode/class could be converted to a matrix,
which does not need to have its columns named. But it's hard to see
why one would want to do this.
-- Bert
On Wed, Aug 15, 2012 at 2:04 PM, li li <hannah.hlx at gmail.com> wrote:
> Dear all,
> I want to import just part of an excel data file into R.
> I would like to have the data imported without
> rownames or colume names.
> I used read.delim("clipboard", header=F). Somehow even though
> I added the argument "header=F", I still have the row names V1, V2, ...,
> Does anyone know how to fix this?
> Thanks very much in advance.
> Hannah
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
--
Bert Gunter
Genentech Nonclinical Biostatistics
Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm
More information about the R-help
mailing list