Learn R Programming

gfer

Installation

Released version from CRAN, for beginners and normal users:

install.packages("gfer")

Development version from github, for experienced users and those who are interested in investigating:

install.packages("devtools")
# You can ignore the line above, if you have already installed devtools
devtools::install_github("Yuanchao-Xu/gfer")

Official Website is https://yuanchao-xu.github.io/gfer

gfer is an R package, designed for green finance and environmental risk research. Focuses on data collecting and analyzing in green finance and environmental risk research and analysis. Main function includes environmental data collecting from official websites like MEP (Ministry of Environmental Protection of China, https://www.mee.gov.cn), water related projects identification and environmental data visualization.

If you feel gfer is of a little help, please cite it as following:

Yuanchao Xu (2021). gfer: Green Finance and Environmental Risk. R package version 0.1.6. https://CRAN.R-project.org/package=gfer

Copy Link

Version

Install

install.packages('gfer')

Monthly Downloads

288

Version

0.1.12

License

GPL-2

Maintainer

Yuanchao Xu

Last Published

February 6th, 2022

Functions in gfer (0.1.12)

getExchange

get a company's listed location
getProxy

Get proxy pool from free proxy provider
getHisMktCap

get a company's historical market cap, data comes from NetEase
getWaternomicsData_NBS

getWaternomicsData_NBS
getHisMktCap_unit

get a company's historical market cap, data comes from NetEase
getWaternomicsData_goog

getWaternomicsData_goog
getTickers

get ticker by input a company's full name or a list of companies' full name
getTickers_unit

get ticker by input a company's full name
getIndexData

get index information Currently include CSI 100, SSE 50, CSI 300, SSE Central SOEs 50, HSI, HSCEI
plotChord

plotScatterPie
getNBS

getNBS
plotScatterPie

plotScatterPie
getStockList

Get information from Shanghai Exchange and Shenzhen Exchange. This will only get stock information in Shanghai Exchange and Shenzhen Exchange Including stocker ticker, stock name and company full name. Data comes from China Merchants Bank
getWaterQ_MEP_all_unit

get PPP list from a single page
getIndexConstnt

get a company's market cap, data comes from NetEase
getIndex

get a company's market cap, data comes from NetEase
getWaterQ_MEP_all

get PPP list from a single page
is.listed

Check if a company is listed in Chinese stock market
milSec

private function for sec
statscnQueryLastN

fetch the lastN data
statscnQueryZb

the data categories
getPPPList_unit

get PPP list from a single page
statscnRegions

the regions in db
statscnRowNamePrefix

statscnRowNamePrefix
getPPPList

get PPP list from an official website
getENNames

get a company's EN names
statscnDbs

the available dbs
statscnQueryData

query data in the statscn db
getENNames_unit

get a company's English name
checkHttpStatus

private function for check the http status
dataJson2df

private function to convert the returned jason data to a dataframe
genDfwds

private function for constructing the query parameter for dfwds
getCSRRating_unit

get CSR rating from a website for a unit page
cm

Matrix showing complicated management of China's Water Resource
GDPmix

Table about GDP mix of China provinces in 2015
getCSRRating

get CSR rating from a website