Hi,
I have for example USA cities and I want to group them according to states.
for example. my list has 61 cities and 11 states. I am trying to sort them and group them into the correct state for the whole list.
what package to use and what function ?
my data set called RoyApp , the variable name for the cities is called WALAYAT.
how to group cities into different group according to states
CITY STATE
Idaho City Idaho
Illinois City Illinois
Indianapolis Indiana
Iowa City Iowa
Jersey City New Jersey
Kansas City Kansas
Maryland City Maryland*
Minnesota City Minnesota
Mississippi City Mississippi
Missouri City Missouri
Montana City Montana
Nebraska City Nebraska
Nevada City Nevada*
New York City New York
Ohio City Ohio
Oklahoma City Oklahoma
Oregon City Oregon
Tennessee City Tennessee
Texas City Texas