Hi,
I am just a newbie learning RStudio... and I have a small question.
I have a database about tourism in which there is a string with regions and I would like to compare between two or three regions within that string. I mean, in this database, you can find country of origin of the tourist, from which region he entered the country and how much he spent.
I know how to “see” country of origin and region of entrance ''table(pais,ccaa) pais meaning origin and ccaa region of entrance. I would like to include expenses, so that I know how much tourists spent in each region and which were their countries of origin and compare (I am in Spain, so I want to know if Russians entering in Madrid spent more than Russians entering in Barcelona… or if Britons entering in Madrid spent less than French entering in Barcelona).
The code might be something like “show me only data from Madrid and Barcelona + country of origin + expenses”
Am I clear?