[R] Creating multiple vector/list names-novice

From: michalseneca <michalseneca_at_gmail.com>
Date: Mon, 04 Apr 2011 09:24:23 -0500 (CDT)

Hi I have very simple issue as I am still new to the group of R

I have basically

vector of names for which i want to create mutliple combinations and then place them in different vectors. In some other language I can just place a third dimension to separate list (or matrix) but i do not know how to do it in R.

My issue is simple I use

I would need to have this as

vector1 or like vector[,,1] :           cc<-combn(colnames(DD),2)
vector2or like vector[,,2]              cc<-combn(colnames(DD),3)

etc..for up to k combinations

something so then I can use for loop to go through the al of these combinations


string<-"a", "b" , "c" ",d"

vector/list(1) ab ac ad bc bd be cd ce de vector/list (2) abc abd abe bcd bce bde cde

Can you help me with this.. I know that it is a simple question for this thread thank you..


View this message in context: http://r.789695.n4.nabble.com/Creating-multiple-vector-list-names-novice-tp3425616p3425616.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 04 Apr 2011 - 14:41:08 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 04 Apr 2011 - 14:50:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive