DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR R
R data.frame count items in column
setNames(as.data.frame(table(df1$asa)), c("asa", "n")) # asa n #1 aa 3 #2 bb 2 #3 cc 1 #4 dd 1
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#R
#count
#items
#column
ADD COMMENT
Topic
COMMENT
Name
4+7 =
Submit