Skip to content
Prev 361776 / 398506 Next

Building a binary vector out of dichotomous variables

Tom
Does this do what you want?

as.numeric(with(ds_example,paste(1,year2013,year2014,year2015,sep='')))
On Thu, Jun 16, 2016 at 8:57 AM, <G.Maubach at weinwolf.de> wrote:
Message-ID: <CAKmUXV9FFUYygXEL7xHXS5gmUPztH1hdo0viXaTMmwMb1VJSRQ@mail.gmail.com>
In-Reply-To: <OF6A6794EB.955DBFA5-ONC1257FD4.0046CFF5-C1257FD4.00473077@lotus.hawesko.de>