Learn R Programming

gfer (version 0.1.12)

getCSRRating: get CSR rating from a website

Description

get CSR rating from a website

Usage

getCSRRating(startPage, endPage, year = 2015, proxy = FALSE)

Arguments

startPage

on Which page you want to start, default is 1

endPage

On which page you want to stop scrapping

year

In which year you want the rank

proxy

whether use the proxy, default is FALSE

Value

A table of CSR ratings collected from your input page

Details

Get CSR ratings and reports of different companies from http://stockdata.stock.hexun.com/zrbg/

References

www.hexun.com

Examples

Run this code
# NOT RUN {
# get first two pages of CSR ratings in 2015
getCSRRating(1,3)
# }

Run the code above in your browser using DataLab