[R] how to concatenate factor vectors?

Sam Steingold sds at gnu.org
Thu Oct 18 17:20:04 CEST 2012


> * R. Michael Weylandt <zvpunry.jrlynaqg at tznvy.pbz> [2012-10-18 16:01:37 +0100]:
>
> On Thursday, October 18, 2012, Sam Steingold wrote:
>
>> > * Bert Gunter <thagre.oregba at trar.pbz> [2012-10-17 23:21:44 -0700]:
>> >
>> > However, Is level "5" in 'a' the same as level "5" in 'b' ?
>>
>> yes, of course.
>> would anyone want to _different_ factors with identical string
>> representations?!
>
> Off the cuff, studying education and grades: F could be a grade or a
> gender.

would you ever want to concatenate a vector of grades with a vector of
genders?
as I said elsewhere, the function which concatenates factors must check
that the levels are identical before proceeding.

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://pmw.org.il http://camera.org
http://openvotingconsortium.org http://truepeace.org http://jihadwatch.org
Ernqvat guvf ivbyngrf QZPN.




More information about the R-help mailing list