Skip to content
Prev 301758 / 398503 Next

Appending the column names

On Mon, Jul 30, 2012 at 3:17 PM, namit <saileshchowdary at gmail.com> wrote:
No, as noted to you by me before
(https://stat.ethz.ch/pipermail/r-help/2012-July/319868.html) -- a
data frame, by definition, has a single column name per column. It
also must have unique rownames so your "desired output" is simply not
a data frame and thus no one can help you to construct one.

Now, to repeat myself:

What are you trying to do (big picture wise)?

R's data structures are quite flexible and powerful and it's very easy
to build one to fit your needs, but what are those needs? We cannot
know if you don't tell us.

Michael