Skip to content
Prev 30936 / 398506 Next

index after rbind

Dear Ann,

To elaborate Spencer's answer slightly, R requires that the row names of a 
data frame be unique. That's why it generated different row names for the 
rows of the two data frames given as arguments to rbind.

Again, the question is what you want to do here. You could generate more 
meaningful row names (e.g., "A1" - "A5", "B1" - "B5" for your original 
example) if this seems appropriate, but they have to be unique.

John
At 09:34 AM 4/21/2003 -0700, Spencer Graves wrote:
____________________________
John Fox
Department of Sociology
McMaster University
email: jfox at mcmaster.ca
web: http://www.socsci.mcmaster.ca/jfox