[R] How I count the all possible samples??

John Kane jrkrideau at yahoo.ca
Tue Jul 8 19:35:27 CEST 2008


?unique


--- On Tue, 7/8/08, muhammad faisal <mfaisal_16 at yahoo.com> wrote:

> From: muhammad faisal <mfaisal_16 at yahoo.com>
> Subject: [R] How I count the all possible samples??
> To: r-help at r-project.org
> Received: Tuesday, July 8, 2008, 1:23 PM
> Dear Members,
> 
> I am facing a problem during counting a sample.
> I have 4 characters i.e. A,C,G,T of DNA sequence and code
> this sequence by 1,2,3,4 respectively.
> 
> 
>  [1] "41" "12" "22"
> "23" "32" "22" "23"
> "32" "22" "21" "12"
> "22" "23" "31" "12"
>  [16] "21" "11" "11"
> "14" "43" "32" "22"
> "23" "34" "41" "13"
> "33" "32" "21" "12"
>  [31] "22" "24" "44"
> "42" "21" "12" "23"
> "31" "12" "23" "33"
> "32" "22" "22" "21"
>  [46] "13" "31" "11"
> "12" "22" "21" "14"
> "43" "33" "32" "23"
> "34" "43" "32" "23"
>  [61] "33" "34" "41"
> "13" "34" "44" "42"
> "23" "33" "32" "24"
> "44" "44" "43" "33"
>  [76] "31" "14" "43"
> "32" "22" "22" "21"
> "12" "22" "21" "13"
> "32" "23" "33" "32"
>  [91] "21" "12" "23"
> "34" "43" "32" "21"
> "12" "21" "11" 
> 
> and i want to count all possible sample i.e. 
> 11,12,13,14,21,22,23,24,31,32,33,34,41,42,43,44
> 
> from the above sequence??
> 
> How i can calculate please help me????
> I would be very thank full to you.
> 
> 
> 
> Regards,
> ++++++++++++++++++++++++++++++++++++++++++++++
> MUHAMMAD FAISAL  Department of Statistics and Decion
> Support system, 
> University of Vienna,Austria      Res. # +4314796696104 
> Cell # +436503605156
> Office # +431427738662
> +++++++++++++++++++++++++++++++++++++++++++++++
> 
> 
> 
>       
> 	[[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.


      __________________________________________________________________
[[elided Yahoo spam]]



More information about the R-help mailing list