DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR R
r mode
find_mode
<-
function
(
x
)
{
u
<-
unique
(
x
)
tab
<-
tabulate
(
match
(
x
,
u
)
)
u
[
tab
==
max
(
tab
)
]
}
Source by www.statology.org #
PREVIOUS
NEXT
Tagged:
#mode
ADD COMMENT
Topic
COMMENT
Name
4+6 =
Submit