[R] Concatenating elements from lists via combinations

2015-03-06 Thread Alrik Thiem
this [[1]] [1] a B D [[2]] [1] aB B D [[3]] [1] aBC B D [[4]] [1] aC B D . [[21]] [1] C c D Many thanks for help, Alrik Alrik Thiem Post-Doctoral Researcher Department of Philosophy University of Geneva Rue de Candolle 2 CH-1211 Geneva +41 76 527 80 83

Re: [R] Substring replacement in string

2015-02-28 Thread Alrik Thiem
...@aghmed.fsnet.co.uk] Gesendet: Samstag, 28. Februar 2015 14:50 An: Alrik Thiem Cc: r-help@r-project.org Betreff: Re: [R] Substring replacement in string Dear Alrik This may seem a silly suggestion but why not just define new functions PMIN and PMAX to call pmin and pmax. Obviously that does

Re: [R] Substring replacement in string

2015-02-28 Thread Alrik Thiem
-Ursprüngliche Nachricht- Von: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] Gesendet: Samstag, 28. Februar 2015 13:35 An: Alrik Thiem Cc: r-help@r-project.org Betreff: Re: [R] Substring replacement in string On Fri, Feb 27, 2015 at 5:19 PM, Alrik Thiem alrik.th...@gmail.com wrote: I

Re: [R] Substring replacement in string

2015-02-28 Thread Alrik Thiem
Ah, I see what you mean. Thanks for suggesting. I'll try. -Ursprüngliche Nachricht- Von: Michael Dewey [mailto:i...@aghmed.fsnet.co.uk] Gesendet: Samstag, 28. Februar 2015 17:31 An: Alrik Thiem Cc: r-help@r-project.org Betreff: Re: AW: [R] Substring replacement in string Your original

Re: [R] Substring replacement in string

2015-02-28 Thread Alrik Thiem
Dear Gabor, That works perfectly! Many thanks and best wishes, Alrik -Ursprüngliche Nachricht- Von: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] Gesendet: Samstag, 28. Februar 2015 19:30 An: Alrik Thiem Cc: r-help@r-project.org Betreff: Re: [R] Substring replacement in string

Re: [R] Substring replacement in string

2015-02-28 Thread Alrik Thiem
[mailto:hpa...@fredhutch.org] Gesendet: Samstag, 28. Februar 2015 23:29 An: Alrik Thiem; r-help@r-project.org Betreff: Re: [R] Substring replacement in string Hi Alrik, With the Biostrings/IRanges infrastructure (Bioconductor packages), you can do this with: library(Biostrings) x0 - BString

Re: [R] Substring replacement in string

2015-02-27 Thread Alrik Thiem
, X4)) == Y, pmax(Z1, z1))) Desired - quote(pmin(pmax(pmin(1 - X1, X2), pmin(X3, X4)) == Y, pmax(Z1, 1 - Z1))) all.equal(Desired, f(In)) [1] TRUE Bill Dunlap TIBCO Software wdunlap tibco.com On Fri, Feb 27, 2015 at 2:19 PM, Alrik Thiem alrik.th...@gmail.com wrote: Dear R-help list, I

[R] Substring replacement in string

2015-02-27 Thread Alrik Thiem
to the functions pmin and pmax by 1 - toupper(...) to get pmin(pmax(pmin(1 - X1, X2), pmin(X3, X4)) == Y, pmax(Z1, 1 - Z1)) Any ideas on how I could achieve that? Many thanks and best wishes, Alrik Alrik Thiem Post-Doctoral Researcher Department of Philosophy

[R] Subsets of Boolean string model

2015-01-05 Thread Alrik Thiem
, a+B+D, a+c+D, a+Bc+D, aB+c+D, B+c+D, aB+Bc+D, . How could I generate a character vector of all permissible and unique sub-models from any Boolean function of the form given above? Best wishes, Alrik Alrik Thiem Post-Doctoral Researcher Department of Philosophy

[R] Two functions plotted in wireframe

2009-04-14 Thread Alrik Thiem
Hi together, I have some graphical problems. I would like to add a semi-transparent surface at z=1 to an existing lattice wireframe plotting a general function z=f(x,y). Any suggestions on how this can be done? Thanks, Alrik [[alternative HTML version deleted]]