Skip to content
Back to formatted view

Raw Message

Message-ID: <CAAxdm-5E9nbi3Um7ys+7epqyiw1KZTdNiPVzYuz1GfSzngzzVQ@mail.gmail.com>
Date: 2011-11-10T13:33:35Z
From: jim holtman
Subject: Creating dummys in R
In-Reply-To: <COL102-W4440B52A5FF18D1336064AC4DC0@phx.gbl>

Not sure what you mean by 'dummies'; do you mean 'objects'?

samesex <- sex == sex1

Examples of the data would help in the formulation of an answer.

On Thu, Nov 10, 2011 at 5:13 AM, David . <loovet88 at hotmail.com> wrote:
>
> Dear R-project!
>
> How do i create 1 dummy from 2 already existing dummys. To be more precise, I want to create a dummy from a dummy called "sex" and another called "sex1" when both thoose dummys are 1 I want my created dummy "samesex" to take 1.
>
> Thanks for the help!
>
> Paulie
>
> ? ? ? ?[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Jim Holtman
Data Munger Guru

What is the problem that you are trying to solve?
Tell me what you want to do, not how you want to do it.