-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.rmd
45 lines (34 loc) · 1.04 KB
/
README.rmd
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
40
41
42
43
44
---
title: README
author: <a href = "https://lovetoken.github.io">lovetoken</a>
date: "`r Sys.Date()`"
output:
html_document:
fig_height: 6
theme: yeti
toc: yes
toc_depth: 3
toc_float: yes
keep_md: yes
---
```{r echo = F, warning = F, message = F}
pacman::p_load(knitr, getkcode)
theme_set(theme_bw(base_family = "AppleGothic"))
```
## `getkcode` R package
개발중인 `getkcode` 패키지는 한국에서 사용되는 코드를 손쉽게 R에서 불러오고 조회할 수 있는 패키지를 목표로 하는 패키지 입니다.
## Getting start
패키지를 설치 후 로드합니다.
```{r eval = F}
devtools::install_github("lovetoken/getkcode")
library("getkcode")
```
`get_kcode()` 함수를 이용하여 특정 코드를 데이터프레임(tibble 형) 으로 반환할 수 있습니다.
```{r}
d <- get_kcode("bjd") # 법정동 코드 호출
d
```
어떤 코드들을 위와 같은 방식으로 불러올 수 있는지 확인하고 싶다면 `get_kcode_list()` 함수를 이용합니다.
```{r}
get_kcode_list()
```