getDF: Data Project: How could social media news influence the stock...

Description Usage Arguments Examples

Description

The fluctuation in the stock market can be reflected and predicted through the most updated news. This project takes news data as an illustration. Specifically, our goal is to find a method to collect and combine both sturctured (numerical) data from Yahoo Finance and unsturctured (text) data from NY Times together by web scraping data from APIs and further text cleaning.

Usage

1
getDF(urls, key = Sys.getenv("NYTIMES_AS_KEY"))

Arguments

urls

The URLs that generated from "makeURL" function

key

Your New York Times API AS KEY

Examples

1
2
URLs <- makeURL(2000, 1, 2000, 2)
getDF(URLs, key = Sys.getenv("NYTIMES_AS_KEY"))

zj2213/NYTimesArticleStock documentation built on Jan. 6, 2021, 11:51 p.m.