Skip to content

table of list objects

3 messages · soon yi, jim holtman

#
Hi

I have a list such as this

list(c("q","w"),"r",c("r","w"),c("q","w"))

How do i create a table to include the count of groups of terms please?

ie so output is like / similar to

q","w"    "r"     "r","w"
2            1            1


thanks for any help









--
View this message in context: http://r.789695.n4.nabble.com/table-of-list-objects-tp4654601.html
Sent from the R help mailing list archive at Nabble.com.
#
try this:
+ list(c("q","w"),"r",c("r","w"),c("q","w"))
[[1]]
[1] "q" "w"

[[2]]
[1] "r"

[[3]]
[1] "r" "w"

[[4]]
[1] "q" "w"
x.v
q, w    r r, w
   2    1    1

        
On Thu, Jan 3, 2013 at 7:50 PM, soon yi <soon.yi at ymail.com> wrote:

  
    
#
perfect.

 thanks for the quick reply



soon yi wrote
--
View this message in context: http://r.789695.n4.nabble.com/table-of-list-objects-tp4654601p4654605.html
Sent from the R help mailing list archive at Nabble.com.