Re: [R] Fw: Aw: Re: Building a binary vector out of dichotomous variables

2016-06-17 Thread PIKAL Petr
quot;))) result} make_bv(dataset = ds_example, input_variables = c("year2013", "year2015")) Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of > g.maub...@gmx.de > Sent: Friday, June 17, 2016 9:19 AM >

[R] Fw: Aw: Re: Building a binary vector out of dichotomous variables

2016-06-17 Thread G . Maubach
> Hi Tom, > > thanks for your reply. > > Yes, that's exactly what I am looking for. I did not know about the automatic > type conversion in R. > > #-- cut -- > ds_example <- > structure( > list( > year2013 = c(0, 0, 0, 1, 1, 1, 1, 0), > year2014 = c(0, >0,