Aan de slagGa gratis aan de slag

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.

Deze oefening maakt deel uit van de cursus

Analyzing Social Media Data in R

Cursus bekijken

Oefeninstructies

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

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

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


# View the first 6 columns
head(___[,1:6])
Code bewerken en uitvoeren