getTopNAttractions: getTopNAttractions

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Provide a dataframe containing the data about the top N attractions for a certain city requested by the user, combining hot spot search from Tripadvisor and obtaining relevant data from Twitter (e.g. sentiments about a certain place).

Usage

1

Arguments

city

A character vector of maximum length 1 (city requested)

n

A positive integer number (number of top spots to get for the requested city)

Details

The function automatically obtains the most relevant places for the selected city based on a search on Tripdadvisor, then queries Twitter about each hot spot (e.g. monument).
Afterwards it runs a sentiment analysis on those selected N top attractions, and also measures the popularity of the place (using the count of the number of tweets mentioning the #place).

The function returns as a result a dataframe containing all the relevant information about the top spots in that city combining in that sense also live reviews from Twitter users, which can then be plotted interactively on a Shiny map as well run_Shiny.

Value

A dataframe containing all results fetched from Tripadvisor and Twitter regarding the top attractions in the chosen city (e.g. popularity level).

Author(s)

Ayrton Rua: [email protected]

Maurizio Griffo: [email protected]

Ali Karray: [email protected]

Mohit Mehrotra: [email protected]

Youness Zarhloul: [email protected]

References

Orso, S., Molinari, R., Lee, J., Guerrier, S., & Beckman, M. (2018). An Introduction to Statistical Programming Methods with R. Retrieved from https://smac-group.github.io/ds/

See Also

touristR & run_shiny

Examples

1
2
3
4
5
6
## Not run: getTopNAttractions(
city = "london",
n = 10
)

## End(Not run)

AyrtonRua/group1_project documentation built on May 14, 2019, 5:14 a.m.