[R] combinations between two vectors
info at aghmed.fsnet.co.uk
Thu Dec 18 16:38:01 CET 2014
On 18/12/2014 14:56, Alaios via R-help wrote:
> Hi all,I am looking for a function that would give me all the combinations between two vectors.Lets take as example the
> Browse> test
>  1 5001 10001 15001 20001 25001
> I want all the combinations between two times the test... I think this is called permutation
I think is more likely it is a combination problem.
would have directed you to the solution others have offered
(expand.grid) and other things too.
so a function that could do permutation(test,test)and produce the
> is there such a function ?
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2015.0.5577 / Virus Database: 4253/8759 - Release Date: 12/18/14
More information about the R-help