[R] Help With Permutations

From: Mulazzani Fabio (Student Com06) <Fabio.Mulazzani_at_stud-inf.unibz.it>
Date: Mon, 24 Nov 2008 14:36:31 +0100

I have a problem with permutations functions in R

I just started using R so maybe it is an easy question

I need to obtain all the 9.somthingExp 157 permutations that can be given from the number from 1 to 100

I wrote the following commands:  

> library(gregmisc)


     cmat <- combinations(300,2)

     dim(cmat) # 44850 by 2

>permutations(n=100, r=100)

Unfortunately at a certain point (after few minutes) I get the following Error:

Error: cannot allocate vector of size 609.1 Mb  

What can I do?



        [[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help 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 24 Nov 2008 - 16:10:41 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 24 Nov 2008 - 17:30:28 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