Skip to content

Commit

Permalink
init book
Browse files Browse the repository at this point in the history
  • Loading branch information
issactoast committed Jan 15, 2022
1 parent c7ffb0c commit 8492966
Show file tree
Hide file tree
Showing 62 changed files with 4,269 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata
20 changes: 20 additions & 0 deletions 01-intro-to-tsibble.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 시계열 첫걸음, 관련 패키지의 이해 {#intro}

## `tsibble` 그리고 `fable` 패키지

시계열과 관련 된 R 패키지는 정말 많이 있다. 그 중에서 가장 유명한 패키지는 `forecast` 패키지이다. `fpp` 2판에서 메인 패키지로 활용되었던 `forecast` 패키지는 예측성능이 좋기로 유명하다. 하지만 `forecast`는 base 패키지를 기반으로 짜여져있는 패키지라서 `fpp` 3판에서 사용하게 될 패키지는 `tsibble``fable` 패키지를 주로 사용하게 될 예정이다. 두 패키지 모두 `tidyverse`스러운 코딩과 잘 맞는 함수들을 지원하는 것이 특징이다.

```{block, type='rmdwarning'}
### 주의하기
`forecast` 패키지는 다른 언어를 사용하는 커뮤니티에도 알려질 정도로 잘 짜여진 패키지이다. 꼭 한번은 사용법을 알아둘 것을 추천한다. [`fpp` 2판의 한글판](https://otexts.com/fppkr/)을 봐두는 것도 나쁘지 않는 선택이다.
```

## `fpp3` 패키지

`fpp3` 패키지는 Hyndman 교수와 Athanasopoulos 교수가 지은 Forecasting: principles and practice 3판에 딸림 R 패키지라고 생각하면 된다. `fpp3` 패키지를 로드시키면 앞에서 말했던 `tsibble``fable` 패키지가 같이 로드된다.

```{r message=TRUE}
library(fpp3)
```

20 changes: 20 additions & 0 deletions _bookdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
book_filename: bookdown
clean: [packages.bib, book.bib, bookdown.bbl]
language:
label:
fig: "그림 "
tab: ""
ui:
edit: "Edit"
chapter_name: "Chapter "

new_session: yes

before_chapter_script: "_common.R"

delete_merged_file: true
output_dir: docs
download: no
rmd_files: ["index.Rmd",
"01-intro-to-tsibble.Rmd",
"references.Rmd"]
10 changes: 10 additions & 0 deletions _common.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
knitr::opts_chunk$set(
comment = "#>",
message = FALSE,
warning = FALSE
)

suppressPackageStartupMessages(library(tidyverse))
suppressPackageStartupMessages(library(fpp3))
suppressPackageStartupMessages(library(ggthemes))
theme_set(theme_igray())
30 changes: 30 additions & 0 deletions _output.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
bookdown::gitbook:
css: ['style.css', 'dlplaybook.css']
config:
sharing: null
toc:
before: |
<li><a href="./">딥러닝 공략집 with R</a></li>
after: |
<li><a href="https://github.com/statisticsplaybook/r-torch-playbook" target="blank">Published with bookdown</a></li>
edit: https://github.com/statisticsplaybook/deeplearning-playbook/edit/master/%s
fontsettings: null
download: null
includes:
in_header: [hypothesis.html, googlesearch.html]
# bookdown::pdf_book:
# includes:
# in_header: latex/preamble.tex
# before_body: latex/before_body.tex
# after_body: latex/after_body.tex
# keep_tex: true
# dev: "cairo_pdf"
# latex_engine: xelatex
# citation_package: natbib
# template: null
# pandoc_args: --top-level-division=chapter
# toc_depth: 3
# toc_unnumbered: false
# toc_appendix: true
# quote_footer: ["\\VA{", "}{}"]
# highlight_bw: false
Binary file added bookdown.rds
Binary file not shown.
Loading

0 comments on commit 8492966

Please sign in to comment.