[R] combination which limited

From: Muhammad Subianto <subianto_at_gmail.com>
Date: Sun 12 Jun 2005 - 04:44:07 EST


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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sun Jun 12 04:48:10 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:31 EST