R
Rich
I have a tough question for the group. I'm not sure how
to code a function to handle the following. Here is
sample data:
ColA ColB
23A SMITH
23A SMITH
23A SMITH
10B BROWN
10B BROWN
10B BROWN
11C SMITH
11C SMITH
3F KENT
4D PARKER
4D PARKER
4D PARKER
4D PARKER
20F SMITH
20F SMITH
15C KENT
15C KENT
15C KENT
I would like to use a function that counts how many
instances a name in column B is found in conjuction with
the number of instances it is found in column A. For
example, for Smith, the result would be 3 because it shows
up 3 times (i.e. once with 23A-Smith, once with 11C-Smith,
and once with 20F-Smith). Brown would be 1, Kent would be
2, and Parker would return 1. Please help.
Sincerely,
Rich K.
to code a function to handle the following. Here is
sample data:
ColA ColB
23A SMITH
23A SMITH
23A SMITH
10B BROWN
10B BROWN
10B BROWN
11C SMITH
11C SMITH
3F KENT
4D PARKER
4D PARKER
4D PARKER
4D PARKER
20F SMITH
20F SMITH
15C KENT
15C KENT
15C KENT
I would like to use a function that counts how many
instances a name in column B is found in conjuction with
the number of instances it is found in column A. For
example, for Smith, the result would be 3 because it shows
up 3 times (i.e. once with 23A-Smith, once with 11C-Smith,
and once with 20F-Smith). Brown would be 1, Kent would be
2, and Parker would return 1. Please help.
Sincerely,
Rich K.