...
as in:
outer(paste("A",A,sep=""),paste("B".B,sep=""), FUN =paste,sep="_")
-- Bert
On Fri, May 4, 2012 at 7:59 AM, Bert Gunter wrote:
> ?outer
>
> Bert
>
> Sent from my iPhone -- please excuse typos.
>
> On May 4, 2012, at 6:25 AM, "R. Michael Weylandt"
> wrote:
>
>> do.call(function(x,y)
?outer
Bert
Sent from my iPhone -- please excuse typos.
On May 4, 2012, at 6:25 AM, "R. Michael Weylandt"
wrote:
> do.call(function(x,y) paste0("A",x,"_","B",y),expand.grid(x = A,y = B))
>
> seems to be a place to start. Robust generalization seems a hair
> tricky -- I'll mull on it.
>
> Mi
do.call(function(x,y) paste0("A",x,"_","B",y),expand.grid(x = A,y = B))
seems to be a place to start. Robust generalization seems a hair
tricky -- I'll mull on it.
Michael
On Fri, May 4, 2012 at 9:10 AM, Johannes Radinger wrote:
> Hi,
>
> it is easiest to explain what I want to do by an example
Hi,
it is easiest to explain what I want to do by an example:
lets assume there are two factors/variables:
A <- c(1,2,3)
B <- c(1,3,3)
Now I would like to generate a list of strings that should look like
("A1_B1","A1_B2","A2_B1","A2_B2"). So actually the string
contains all possible combinations
4 matches
Mail list logo