-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregression.R
More file actions
39 lines (30 loc) · 677 Bytes
/
regression.R
File metadata and controls
39 lines (30 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
library(data.table)
library(stringr)
library(dplyr)
library(ggplot2)
library(xgboost)
set.seed(1)
setwd('/projetos/machine-learning-challenge-2/')
train <- fread("train.csv")
test <- fread("test.csv")
my_sample <- sample_frac(train, 0.1)
library(quantmod)
?quantmod
install.packages('quantmod')
from <- c("CAD", "JPY", "USD")
to <- c("USD", "USD", "EUR")
getQuote(paste0(from, to, "=X"))
?xgboost
#reg:logistic
getSymbols("AAPL",src="yahoo")
barChart(AAPL)
tail(AAPL, 10)$AAPL.Close
require(TTR)
getSymbols("PETR4", src = "google")
chartSeries(PETR4)
addMACD()
addBBands()
str(PETR4)
row.names(PETR4)
PETR4[as.POSIXct.Date(today())]
PETR4['2017-06-01']:'2017-06-20']