Skip to content

names over names

2 messages · elyakhlifi mustapha, Jim Lemon

#
elyakhlifi mustapha wrote:
If you mean something like this:

		Weekdays
Monday	Tuesday	Wednesday Thursday Friday

and you want it to be part of the data frame:

attr(mydf,"supername")<-"Weekdays"

This will not just appear when you print the data frame, you would have 
to access the "supername" like this:

attr(mydf,"supername")

[1] "Weekdays"

However, I suspect that whatever you are trying to accomplish can be 
done in a more straightforward way.

Jim