Dear all,
 
I would like to inquire, if it is a desired feature that the combination with rbind() of two data frames with factors columns does not sort the factors levels of the combined data frame.
 
> str(rbind(data.frame(a = factor(c(4, 3))), data.frame(a = factor(c(2, 1)))))
'data.frame':   4 obs. of  1 variable:
 $ a: Factor w/ 4 levels "3","4","1","2": 2 1 4 3
 
I would expect the combined factor levels to be sorted, as long as both factors are not ordered.
 
With many thanks and best regards,
Stefan
 
 
____________________________________
Dr. Stefan Albrecht, CFA
Allianz Private Equity Partners GmbH
Königinstr. 19 | 80539 Munich | Germany

Phone: +49.(0)89.3800.18317
Fax: +49.(0)89.3800.818317
EMail: stefan.albrecht@allianz.com <mailto:stefan.albrecht@allianz.com> 
Web: www.apep.com <http://www.apep.com/> 


Allianz Private Equity Partners GmbH | Geschäftsführung: Wan Ching Ang, Karl Ralf Jung
Sitz der Gesellschaft: München | Registergericht: München HRB 126221 | Ust-ID-Nr.: DE 813 264 786

 

	[[alternative HTML version deleted]]

