Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Rcode1
#R version 3.3.2 print("===== Download DJIA and 30 compound stocks =====") download_data = function(url) { raw = read.table(url, header=TRUE, sep=",") raw = raw[, c(1, 7)] # 1 is Date column, 7 is Adj.Close column raw = raw[nrow(raw):1, ] # Sort oldest to newest return(raw) } djia_url = "http://chart.finance.yahoo.com/table.csv?s=^DJI&a=7&b=30&c=2013&d=7&e=30&f=2016&g=m&ignore=.csv" compounds = c("CVX", "INTC", "MMM", "DIS", "GE", "V", "TRV", "DD", "WMT", "IBM", "XOM", "AXP", "HD", "MCD", "CSCO", "MRK", "JPM", "PFE", "JNJ", "UTX", "UNH", "PG", "KO", "CAT", "MSFT", "GS", "AAPL", "NKE", "VZ", "BA")
run
|
edit
|
history
|
help
0
Gab1A(resumido)
Why is height normal
SEIR-Modell
31-08-2020-Exemplo Ajuste
Data Transformation
ECO Stat
14-09-2020GRamLD
waves 2
Linear and Logistic Regression
Correlation