I have multiple values (a list of values) for variable x(i). For example x(1):
[1] "$30 1 d" "$250 2 d" "$300 3 d"
[4] "$100 3 d" "$10 4 d" "$30 1 d"
[7] "$250 2 d" "$300 3 d" "$100 3 d"
[10] "$10 4 d" "OrganizerBoyette, FL" "Team member"
I want to find the word after "organizer" for variable X(1). For instance here is Boyette, FL (The name of city and state after organizer). Here organizer is the 11th value in the list. Maybe for variable x(2), another output for person 2, the organizer may be located in the 9th value in the list. Could you help me in writing a code in R for solving this issue? I want to find the name of the city and state for each person.
Maybe this can help:
Created on 2021-06-07 by the reprex package (v2.0.0)