srx.R 295 B

1234567891011121314151617
  1. # Small XOR problem data
  2. # documentation in R/Boruta.R
  3. stats::setNames(
  4. do.call(expand.grid,rep(list(c(TRUE,FALSE)),5)),
  5. c("A","B","N1","N2","N3")
  6. )->srx
  7. data.frame(
  8. srx,
  9. AoB=with(srx,A|B),
  10. AnB=with(srx,A&B),
  11. nA=!srx$A
  12. )->srx
  13. srx$Y<-with(srx,A!=B)
  14. srx<-as.data.frame(lapply(srx,factor))