I have a dataframe that looks like the following
| ID | director_name | vp_name | lead_name | funding |
|---|---|---|---|---|
| 1 | A | C | E | 100$ |
| 2 | B | D | G | 200$ |
I want to add empty columns for genders based on variables that have _name in their headers to look like the following
| ID | director_name | director_g | vp_name | vp_g | lead_name | lead_g | funding |
|---|---|---|---|---|---|---|---|
| 1 | A | C | E | 100$ | |||
| 2 | B | D | G | 200$ |
All the internet help has been based on conditions that are based on values in a variable, but none on headers. At the same time, I am not sure how to give them specific names. Any help would be appreciated! Thanks!