I have a dataset divided into passenger names and their status (suppose, 10 cateogories) like this.
| Passenger | Status |
|---|---|
| Peter | Captain |
| Mary | Mrs. |
| Claudette | Mrs. |
| Marius | Doc. |
| Holmes | Mr. |
| ... | ... |
ecc.
In R, how can I display how many passengers are characterised by a specific Status and who? I had in mind a table that represented a situation like "n passengers into the "Mrs." category and their names are "Claudette, Mary ecc."
(I don't need the whole string message, only the number and their names)
How can I do it?