Skip to content
Prev 303451 / 398513 Next

Import Data from Excel

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: