Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
3 answers
103 views

Using loop to make column selections using different vectors

Let's say I have 3 vectors (strings of 10): X <- c(1,1,0,1,0, 1,1, 0, NA,NA) H <- c(0,0,1,0,NA,1,NA,1, 1, 1 ) I <- c(0,0,0,0,0, 1,NA,NA,NA,1 ) Data.frame Y contains 10 columns and 6 rows: 1 ...
EJHendriks's user avatar