Last data update: 2014.03.03

R: Financial information for 50 S&P 500 companies
sp500R Documentation

Financial information for 50 S&P 500 companies

Description

Fifty companies were randomly sampled from the 500 companies in the S&P 500, and their financial information was collected on March 8, 2012.

Usage

data(sp500)

Format

A data frame with 50 observations on the following 12 variables.

market_cap

Total value of all company shares, in millions of dollars.

stock

The name of the stock (e.g. AAPL for Apple).

ent_value

Enterprise value, which is an alternative to market cap that also accounts for things like cash and debt, in millions of dollars.

trail_pe

The market cap divided by the earnings (profits) over the last year.

forward_pe

The market cap divided by the forecasted earnings (profits) over the next year.

ev_over_rev

Enterprise value divided by the company's revenue.

profit_margin

Percent of earnings that are profits.

revenue

Revenue, in millions of dollars.

growth

Quartly revenue growth (year over year), in millions of dollars.

earn_before

Earnings before interest, taxes, depreciation, and amortization, in millions of dollars.

cash

Total cash, in millions of dollars.

debt

Total debt, in millions of dollars.

Source

Yahoo! Finance, finance.yahoo.com, collected March 8, 2012.

References

OpenIntro, openintro.org

Examples

data(sp500)
plot(sp500$ent_value, sp500$earn_before)

plot(sp500$ev_over_rev, sp500$forward_pe)

plot(sp500$ent_value, sp500$earn_before, log="xy")

plot(sp500$ev_over_rev, sp500$forward_pe, log="xy")

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(OIdata)
Loading required package: RCurl
Loading required package: bitops
Loading required package: maps

 # maps v3.1: updated 'world': all lakes moved to separate new #
 # 'lakes' database. Type '?world' or 'news(package="maps")'.  #


> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/OIdata/sp500.Rd_%03d_medium.png", width=480, height=480)
> ### Name: sp500
> ### Title: Financial information for 50 S&P 500 companies
> ### Aliases: sp500
> ### Keywords: datasets SP 500 stocks financial money
> 
> ### ** Examples
> 
> data(sp500)
> plot(sp500$ent_value, sp500$earn_before)
> 
> plot(sp500$ev_over_rev, sp500$forward_pe)
> 
> plot(sp500$ent_value, sp500$earn_before, log="xy")
> 
> plot(sp500$ev_over_rev, sp500$forward_pe, log="xy")
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>