Dear Muhammad,

Does it work for you?

x=scan()
41 12 22 23 32 22 23 32 22 21 12 22 23 31 12
21 11 11 14 43 32 22 23 34 41 13 33 32 21 12
22 24 44 42 21 12 23 31 12 23 33 32 22 22 21
13 31 11 12 22 21 14 43 33 32 23 34 43 32 23
33 34 41 13 34 44 42 23 33 32 24 44 44 43 33
31 14 43 32 22 22 21 12 22 21 13 32 23 33 32
21 12 23 34 43 32 21 12 21 11

table(x)

See ?table for more information.

HTH,

Jorge


On Tue, Jul 8, 2008 at 1:23 PM, muhammad faisal <[EMAIL PROTECTED]>
wrote:

>
> 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@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.
>
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to