Skip to content

Commit

Permalink
2쇄 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunyulhenry committed Dec 23, 2020
1 parent 7305fd1 commit b71eab9
Show file tree
Hide file tree
Showing 30 changed files with 6,982 additions and 9,964 deletions.
2 changes: 1 addition & 1 deletion 11-portfolio.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ rets = Return.calculate(prices) %>% na.omit()
```

```{r echo = FALSE}
write.csv(rets, 'data/global_data.sv')
write.csv(data.frame(rets), 'data/data_global.csv')
```

`getSymbols()` 함수를 통해 일반적으로 자산배분에서 많이 사용되는 주식과 채권, 대체자산에 해당하는 ETF 가격 데이터를 받은 후 `lapply()``Ad()`, `get()` 함수의 조합을 통해 수정주가만을 선택하고 열의 형태로 묶어줍니다. 그 후 `Return.calculate()` 함수를 통해 수익률을 계산합니다.
Expand Down
Loading

0 comments on commit b71eab9

Please sign in to comment.