Skip to content
Prev 334737 / 398506 Next

Using cbind to merge different variables

Hi

Another option is

dat1$Newvar <- 1*(rowSums(dat1)>0)

Regards
Petr