เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

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.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Analyzing Social Media Data in R

ดูคอร์ส

คำแนะนำการฝึกหัด

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

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

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


# View the first 6 columns
head(___[,1:6])
แก้ไขและรันโค้ด