naver_trends: Get data from Naver Trends

Description Usage Arguments Value Examples

Description

This function scrapes Naver Trends and returns the results nicely formatted into a R object

Usage

1
naver_trends(query)

Arguments

query

The keyword to be searched. It will be auto escaped. This can be a vector with up to 5 queries

Value

The output is a dataframe containing Date and Value variables for all the queries

Examples

1
2
3
4
5
#Search the keyword 'tokyo and japan'
results = naver_trends(c("tokyo", "japan"))

#Visualize results
ggplot(results, aes(x = Date, y = Value, col = Query)) + geom_line()

RossiLorenzo/trendR documentation built on May 9, 2019, 10:32 a.m.