[R] Summing up Non-numeric column

Bill.Venables at csiro.au Bill.Venables at csiro.au
Wed Dec 8 06:09:37 CET 2010


?unique 

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of zhiji19
Sent: Wednesday, 8 December 2010 2:57 PM
To: r-help at r-project.org
Subject: [R] Summing up Non-numeric column


Dear All

If I have the following dataset

V1 V2
x   y
y   x
z   b
a   c
b   j
d   l
c   o

How do I use R command to get the total number of different letter in column
"V1"
column "V1" has 7 different letters.

Thank you
-- 
View this message in context: http://r.789695.n4.nabble.com/Summing-up-Non-numeric-column-tp3077710p3077710.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.



More information about the R-help mailing list