Get startedGet started for free

Trends by country name

Location-specific trends identify popular topics trending in a specific location. You can extract trends at the country level or city level.

It is more meaningful to extract trends around a specific region, in order to focus on twitter audience in that region for targeted marketing of a brand.

Can you extract topics trending in Canada and view the trends?

The library rtweet has been pre-loaded for this exercise.

This exercise is part of the course

Analyzing Social Media Data in R

View Course

Exercise instructions

  • Extract topics trending in Canada.
  • View the first 6 columns of extracted data.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Get topics trending in Canada
gt_country <- ___("___")


# View the first 6 columns
head(___[,1:6])
Edit and Run Code