[R] permutations

David Winsemius dwinsemius at comcast.net
Sat Oct 10 16:49:23 CEST 2009


require(combinat)
permn((c(23,46,70,71,89))

On Oct 10, 2009, at 10:05 AM, Eiger wrote:

>
> Question 1.
> I would calculate all the permutations of numbers (23,46,70,71,89)
> How can I write correctly the code?
>
> (Load gregmisc)
>
>> permutations (..?...)
> ______________________
>
> Question 2.
> It's possible permute a string?
> ..for example:
> EIGER
> EGIER
> EREGI
> etc..etc..
>
> Thanks,
> E.
> -- 
> View this message in context: http://www.nabble.com/permutations-tp25834463p25834463.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT




More information about the R-help mailing list