[R] find multiple mode

Sorkin, John j@ork|n @end|ng |rom @om@um@ry|@nd@edu
Sun Mar 15 23:26:14 CET 2020


Ding,
Perhaps I am missing something. First, if you know the modes, why do you need to look for them? Second, I don�t believe the modes are as you stated, 10, 8, and 149.
John

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: Yuan Chun Ding<mailto:ycding using coh.org>
Sent: Sunday, March 15, 2020 4:55 PM
To: r-help mailing list<mailto:r-help using r-project.org>
Subject: [R] find multiple mode

Hi R users,

I want to find multiple modes (10, 8, 149) for the following vector.

freq =1,2,5,5  10,4,4,8,1,1,8,8,2,4,3,1,2,1,1 138 149  14,1,1;

any suggestion?

Thank you,

Ding

----------------------------------------------------------------------
------------------------------------------------------------
-SECURITY/CONFIDENTIALITY WARNING-

This message and any attachments are intended solely for the individual or entity to which they are addressed. This communication may contain information that is privileged, confidential, or exempt from disclosure under applicable law (e.g., personal health information, research data, financial information). Because this e-mail has been sent without encryption, individuals other than the intended recipient may be able to view the information, forward it to others or tamper with the information without the knowledge or consent of the sender. If you are not the intended recipient, or the employee or person responsible for delivering the message to the intended recipient, any dissemination, distribution or copying of the communication is strictly prohibited. If you received the communication in error, please notify the sender immediately by replying to this message and deleting the message and any accompanying files from your system. If, due to the security risks, you do not wish to rec
 eive further communications via e-mail, please reply to this message and inform the sender that you do not wish to receive further e-mail from the sender. (LCP301)
------------------------------------------------------------

        [[alternative HTML version deleted]]

______________________________________________
R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-help&data=02%7C01%7C%7C147c639f891e4753d10908d7c923312d%7C717009a620de461a88940312a395cac9%7C0%7C0%7C637199025303882146&sdata=2393RLv1pAKFVoOGyObIlOg6yBSttf%2FH59GhqqFU3oA%3D&reserved=0
PLEASE do read the posting guide https://nam03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.R-project.org%2Fposting-guide.html&data=02%7C01%7C%7C147c639f891e4753d10908d7c923312d%7C717009a620de461a88940312a395cac9%7C0%7C0%7C637199025303882146&sdata=oQhNDMGv2XpTCUpZlCg5brpFJtZ4ZrvfcHVmeXWJmHU%3D&reserved=0
and provide commented, minimal, self-contained, reproducible code.


	[[alternative HTML version deleted]]



More information about the R-help mailing list