get_pe_ratio: Get Price-Earnings Ratio

View source: R/get_pe_ratio.R

get_pe_ratioR Documentation

Get Price-Earnings Ratio

Description

Wrapper function for fetching data from gurufocus.com.

Usage

get_pe_ratio(df)

Arguments

df

data.frame. Data frame with column 'symbol' containing at least one valid stock ticker symbol.

Details

The Price-Earnings Ratio calculated by the earnings divided by the market capitalization of a company.

Value

Input data.frame supplemented by the company's available Price Earnings Ratio data.

Examples

df <- data.frame('symbol' = 'AAPL')
res <- get_pe_ratio(df)


OliverHennhoefer/quant documentation built on Sept. 18, 2022, 5:50 p.m.