[R] combination which limited

Muhammad Subianto subianto at gmail.com
Sat Jun 11 20:44:07 CEST 2005


Dear R-helpers,
I am learning about combination in R.
I want to combination all of
possible variable but it limited. 
I am sorry I could not explain exactly.
For usefull I give an example
  interface <- c("usb","fireware","infra","bluetooth")
  screen    <- c("lcd","cube")
  computer  <- c("pc","server","laptop")
  available <- c("yes","no")
  
What the result I need, something like this below,
  usb          lcd     pc      yes
  fireware     lcd     pc      yes
  infra        lcd     pc      yes
  bluetooth    lcd     pc      yes
  usb          cube    pc      yes 
  usb          lcd     server  yes
  usb          lcd     laptop  yes
  usb          lcd     pc      no
  
How can I do that?
I was wondering if someone can help me.
Thanks you for your time and best regards,
Muhammad Subianto




More information about the R-help mailing list