I am trying to tabulate from an audit log the number of failed attempts by login id. Suppose the audit log is as follows:
User ID | LoginStatus | LoginAttempt
----------+--------------+-----------------
2ABQM4 | F | 1
2ABQM4 | F | 2
1BIDU8 | F | 1
1YUM8T | F | 1
2MP32A | F | 1
2MP32A | F | 2
2ABQM4 | F | 3
1BIDU8 | F | 2
I would like to create a table where the max login attempts is shown by User ID as follows:
User ID | MaxLoginAttempt
----------+-----------------
2ABQM4 | 3
1BIDU8 | 2
1YUM8T | 1
2MP32A | 2
I am unsure of how to do it in R. Thanking gurus and seniors in advance for kind assistance.
Arifin