ds <- data.set(
var1 = c(0,1,-1,2,3),
var2 = c(-1,-1,1,1,1),
var3 = c(1,2,3,4,5)
)
neg2mis(ds,all=TRUE)
neg2mis(ds,all=TRUE,zero=TRUE)
neg2mis(ds,exclude=var1)
neg2mis(ds,select=var1)
Run the code above in your browser using DataLab